From c294251aaf743b19ed2f0c4f8f3a1aa1273fe3fe Mon Sep 17 00:00:00 2001 From: Korbinian Date: Wed, 20 Sep 2023 11:28:57 +0200 Subject: [PATCH] fix(bridge-ui-v2): validate amount only if component is mounted (#14757) --- packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte index 0d6defc8ac2..a74cfea3f57 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) { + amountComponent.validateAmount(); + }