From 378baf1ef658a8089f175ad99b723f6dbc6f7fc6 Mon Sep 17 00:00:00 2001 From: Luuk Date: Tue, 21 Feb 2023 14:28:10 +0100 Subject: [PATCH] return false --- packages/bridge-ui/src/components/form/BridgeForm.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bridge-ui/src/components/form/BridgeForm.svelte b/packages/bridge-ui/src/components/form/BridgeForm.svelte index 6fc179f5e92..097f820b8b2 100644 --- a/packages/bridge-ui/src/components/form/BridgeForm.svelte +++ b/packages/bridge-ui/src/components/form/BridgeForm.svelte @@ -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),