Skip to content

Commit

Permalink
fix(bridge-ui-v2): validate amount only if component is mounted (#14757)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Sep 28, 2023
1 parent 69c777e commit 7380946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
}
}
}
$: if ($selectedToken) {
$: if ($selectedToken && amountComponent) {
amountComponent.validateAmount();
}
</script>
Expand Down

0 comments on commit 7380946

Please sign in to comment.