Skip to content

Commit

Permalink
fix(bridge-ui-v2): approve button not updating (#14746)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Sep 20, 2023
1 parent 0a3f639 commit ccbfa9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/bridge-ui-v2/src/components/Bridge/Amount.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
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.validateAmount();
}
</script>

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

1 comment on commit ccbfa9a

@vercel
Copy link

@vercel vercel bot commented on ccbfa9a Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bridge-ui-v2-internal – ./packages/bridge-ui-v2

bridge-ui-v2-internal-taikoxyz.vercel.app
bridge-ui-v2-internal-git-main-taikoxyz.vercel.app
bridge-ui-v2-internal.vercel.app

Please sign in to comment.