diff --git a/packages/bridge-ui/src/components/Transaction.svelte b/packages/bridge-ui/src/components/Transaction.svelte index 10b1b205d70..00135090699 100644 --- a/packages/bridge-ui/src/components/Transaction.svelte +++ b/packages/bridge-ui/src/components/Transaction.svelte @@ -79,7 +79,7 @@ } // confirm after switch chain that it worked. - if (!isOnCorrectChain($signer, bridgeTx.toChainId)) { + if (!(await isOnCorrectChain($signer, bridgeTx.toChainId))) { errorToast('You are connected to the wrong chain in your wallet'); return; } @@ -128,7 +128,7 @@ } // confirm after switch chain that it worked. - if (!isOnCorrectChain($signer, bridgeTx.fromChainId)) { + if (!(await isOnCorrectChain($signer, bridgeTx.fromChainId))) { errorToast('You are connected to the wrong chain in your wallet'); return; } diff --git a/packages/bridge-ui/src/components/form/BridgeForm.svelte b/packages/bridge-ui/src/components/form/BridgeForm.svelte index add1a6502e9..f3dfef08673 100644 --- a/packages/bridge-ui/src/components/form/BridgeForm.svelte +++ b/packages/bridge-ui/src/components/form/BridgeForm.svelte @@ -218,7 +218,7 @@ throw Error('Invalid custom recipient address'); } - if (!isOnCorrectChain($signer, $fromChain.id)) { + if (!(await isOnCorrectChain($signer, $fromChain.id))) { errorToast('You are connected to the wrong chain in your wallet'); return; }