Skip to content

Commit

Permalink
chore(bridge-ui-v2): clean amount warning when left bridge page (#14704)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino committed Sep 18, 2023
1 parent 52a50b7 commit 86d7c93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/bridge-ui-v2/src/components/Bridge/Amount.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { onDestroy } from 'svelte';
import { t } from 'svelte-i18n';
import { formatUnits, parseUnits } from 'viem';
Expand Down Expand Up @@ -36,6 +37,10 @@
let inputBox: InputBox;
let computingMaxAmount = false;
onDestroy(() => {
clearAmount();
});
// Public API
export function clearAmount() {
inputBox.clear();
Expand Down

1 comment on commit 86d7c93

@vercel
Copy link

@vercel vercel bot commented on 86d7c93 Sep 18, 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.vercel.app
bridge-ui-v2-internal-taikoxyz.vercel.app
bridge-ui-v2-internal-git-main-taikoxyz.vercel.app

Please sign in to comment.