From 0113490f388a986a705d970ef8b4a263de882707 Mon Sep 17 00:00:00 2001 From: Jaapiehetaapie <96265864+Jaapiehetaapie@users.noreply.github.com> Date: Fri, 24 Feb 2023 03:53:37 +0100 Subject: [PATCH] fix(bridge-ui): change text of button to "bridge" (#13163) Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com> --- packages/bridge-ui/src/components/form/BridgeForm.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bridge-ui/src/components/form/BridgeForm.svelte b/packages/bridge-ui/src/components/form/BridgeForm.svelte index f22a3b6b793..6d2271aabed 100644 --- a/packages/bridge-ui/src/components/form/BridgeForm.svelte +++ b/packages/bridge-ui/src/components/form/BridgeForm.svelte @@ -42,7 +42,7 @@ let amount: string; let amountInput: HTMLInputElement; - let requiresAllowance: boolean = true; + let requiresAllowance: boolean = false; let btnDisabled: boolean = true; let tokenBalance: string; let customFee: string = "0"; @@ -115,7 +115,7 @@ fromChain: Chain, signer: Signer ) { - if (!fromChain || !amt || !token || !bridgeType || !signer) return true; + if (!fromChain || !amt || !token || !bridgeType || !signer) return false; const addr = await addrForToken(); const allowance = await $activeBridge.RequiresAllowance({