From ccbfa9a62d2f918a8c321e1c147ccc606f599bb0 Mon Sep 17 00:00:00 2001 From: Korbinian Date: Wed, 20 Sep 2023 04:47:36 +0200 Subject: [PATCH] fix(bridge-ui-v2): approve button not updating (#14746) --- packages/bridge-ui-v2/src/components/Bridge/Amount.svelte | 3 +-- packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bridge-ui-v2/src/components/Bridge/Amount.svelte b/packages/bridge-ui-v2/src/components/Bridge/Amount.svelte index d9cc2d0660..355321307f 100644 --- a/packages/bridge-ui-v2/src/components/Bridge/Amount.svelte +++ b/packages/bridge-ui-v2/src/components/Bridge/Amount.svelte @@ -62,8 +62,7 @@ !$destNetwork || !$tokenBalance || !$selectedToken || - $enteredAmount === BigInt(0) || // no need to check if the amount is 0 - $tokenBalance.symbol !== $selectedToken.symbol + $enteredAmount === BigInt(0) // no need to check if the amount is 0 ) return; diff --git a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte index 0d6defc8ac..b506855c16 100644 --- a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte +++ b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte @@ -296,6 +296,9 @@ } } } + $: if ($selectedToken) { + amountComponent.validateAmount(); + }