From c506409d6a41d84c110f6ba715f1bbf023d1e192 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte index b506855c16f..a74cfea3f57 100644 --- a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte +++ b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte @@ -296,7 +296,7 @@ } } } - $: if ($selectedToken) { + $: if ($selectedToken && amountComponent) { amountComponent.validateAmount(); }