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 20, 2023
1 parent 39266e8 commit c294251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@
}
}
}
$: if ($selectedToken && amountComponent) {
amountComponent.validateAmount();
}
</script>

<Card class="w-full md:w-[524px]" title={$t('bridge.title.default')} text={$t('bridge.description')}>
Expand Down

0 comments on commit c294251

Please sign in to comment.