diff --git a/src/components/elements/input/token/selector.svelte b/src/components/elements/input/token/selector.svelte index 93ad247f..c9899402 100644 --- a/src/components/elements/input/token/selector.svelte +++ b/src/components/elements/input/token/selector.svelte @@ -45,7 +45,6 @@ $: { if (tokenOptions) { filteredTokens = tokenOptions.map(tokenOption => { - const usdt = $tokens?.find(token => token.contract === 'tethertether') const token = $tokens?.find(token => tokenOption.tokenName === token.name) if (!token) { diff --git a/src/components/elements/input/token/selector/row.svelte b/src/components/elements/input/token/selector/row.svelte index 3d53ab4d..91f00355 100644 --- a/src/components/elements/input/token/selector/row.svelte +++ b/src/components/elements/input/token/selector/row.svelte @@ -14,12 +14,7 @@ let balance $: { - if (token.balance) { - balance = token.balance - } else { - balance = - $balances && $balances.find((balance) => balance.tokenKey === token.key)?.quantity - } + balance = $balances && $balances.find((balance) => balance.tokenKey === token.key)?.quantity if (typeof balance === 'string') { formattedTokenBalance = balance diff --git a/src/pages/transfer/form.svelte b/src/pages/transfer/form.svelte index 249a47b2..63335fb6 100644 --- a/src/pages/transfer/form.svelte +++ b/src/pages/transfer/form.svelte @@ -1,7 +1,7 @@