diff --git a/packages/state/src/hooks/network.ts b/packages/state/src/hooks/network.ts index 78070cac65..563e649b94 100644 --- a/packages/state/src/hooks/network.ts +++ b/packages/state/src/hooks/network.ts @@ -10,7 +10,7 @@ export const useBuyTezUrl = (pkh?: string) => { const network = useSelectedNetwork(); let buyTezUrl = network.buyTezUrl; - if (buyTezUrl && network === MAINNET) { + if (buyTezUrl && network.name === "mainnet") { buyTezUrl += `/default/widget/?commodity=XTZ&address=${pkh}&network=tezos&commodity_id=xtz.simple.tezos`; }