diff --git a/src/components/SorobanBanner.tsx b/src/components/SorobanBanner.tsx index d8640b0b..358476b3 100644 --- a/src/components/SorobanBanner.tsx +++ b/src/components/SorobanBanner.tsx @@ -1,7 +1,9 @@ import { useIsSoroban } from "hooks/useIsSoroban"; +import { useRedux } from "hooks/useRedux"; export const SorobanBanner = () => { let isSoroban = useIsSoroban(); + const { network } = useRedux("network"); return isSoroban ? (
@@ -14,7 +16,7 @@ export const SorobanBanner = () => { > Soroban {" "} - test network + {network.current.name} network
) : null; diff --git a/src/hooks/useIsSoroban.ts b/src/hooks/useIsSoroban.ts index 321dc1dc..554587cd 100644 --- a/src/hooks/useIsSoroban.ts +++ b/src/hooks/useIsSoroban.ts @@ -2,7 +2,7 @@ import NETWORK from "constants/network.js"; import { useRedux } from "hooks/useRedux"; export const useIsSoroban = () => { - const { network } = useRedux("network", "routing"); + const { network } = useRedux("network"); const { horizonURL, networkPassphrase } = network.current; const url = new URL(horizonURL);