From e21ca3660898e444cf21bcbbfc934d46e4e576db Mon Sep 17 00:00:00 2001 From: SihanoukSolver29 <150921296+SihanoukSolver29@users.noreply.github.com> Date: Wed, 27 Mar 2024 18:26:07 +0000 Subject: [PATCH] fix token reset balance bug --- .../ImportStep/TokenInput/TokenInput.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ImportStep/TokenInput/TokenInput.svelte b/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ImportStep/TokenInput/TokenInput.svelte index 1db451a5eb..0c40247d37 100644 --- a/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ImportStep/TokenInput/TokenInput.svelte +++ b/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ImportStep/TokenInput/TokenInput.svelte @@ -27,6 +27,7 @@ import { getMaxAmountToBridge } from '$libs/bridge'; import { UnknownTokenTypeError } from '$libs/error'; import { fetchBalance, tokens, TokenType } from '$libs/token'; + import { ETHToken } from '$libs/token'; import { refreshUserBalance, renderBalance } from '$libs/util/balance'; import { debounce } from '$libs/util/debounce'; import { getLogger } from '$libs/util/logger'; @@ -153,6 +154,7 @@ }; const reset = async () => { + $selectedToken = ETHToken; $computingBalance = true; value = ''; $enteredAmount = 0n;