Skip to content

Commit

Permalink
didnt await the promise
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Mar 24, 2023
1 parent 7285947 commit 1468f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/bridge-ui/src/components/Transaction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/components/form/BridgeForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1468f53

Please sign in to comment.