From 9d4169fb289d1791eae5df189dd9c3133d146d78 Mon Sep 17 00:00:00 2001 From: Iveta Date: Mon, 11 Dec 2023 13:41:16 -0500 Subject: [PATCH] Show Soroban banner on testnet + update Webpack config --- src/hooks/useIsSoroban.ts | 6 ++++-- webpack.common.js | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hooks/useIsSoroban.ts b/src/hooks/useIsSoroban.ts index 300bdba5..321dc1dc 100644 --- a/src/hooks/useIsSoroban.ts +++ b/src/hooks/useIsSoroban.ts @@ -8,8 +8,10 @@ export const useIsSoroban = () => { let isOnFuturenet = false; if ( - url.origin === NETWORK.available.futurenet.horizonURL && - networkPassphrase === NETWORK.available.futurenet.networkPassphrase + (url.origin === NETWORK.available.futurenet.horizonURL && + networkPassphrase === NETWORK.available.futurenet.networkPassphrase) || + (url.origin === NETWORK.available.test.horizonURL && + networkPassphrase === NETWORK.available.test.networkPassphrase) ) { isOnFuturenet = true; } diff --git a/webpack.common.js b/webpack.common.js index b962ea5e..4c800b8e 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -159,7 +159,4 @@ module.exports = { exclude: "node_modules", }), ], - watchOptions: { - ignored: /node_modules/, - }, };