Skip to content

Commit

Permalink
return false
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaapiehetaapie committed Feb 21, 2023
1 parent d493fcd commit 378baf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bridge-ui/src/components/form/BridgeForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
fromChain: Chain,
signer: Signer
) {
if (!fromChain || !amt || !token || !bridgeType || !signer) return false;
const addr = await addrForToken();
const allowance = await $activeBridge.RequiresAllowance({
amountInWei: ethers.utils.parseUnits(amt, token.decimals),
Expand Down

0 comments on commit 378baf1

Please sign in to comment.