From b151bcb2e159ece03da3c2014e35dbbbed7d8410 Mon Sep 17 00:00:00 2001 From: Korbinian Date: Thu, 22 Feb 2024 19:23:42 +0100 Subject: [PATCH] fix(bridge-ui): incorrectly detecting bridged tokens (#16007) --- .../src/components/TokenDropdown/TokenDropdown.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte b/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte index b2f23933788..6f929afde84 100644 --- a/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte +++ b/packages/bridge-ui/src/components/TokenDropdown/TokenDropdown.svelte @@ -98,7 +98,10 @@ } if (tokenInfo.canonical && tokenInfo.bridged) { // double check we have the correct address for the destination chain and it is not 0x0 - if (value?.addresses[destChain.id] !== tokenInfo.canonical?.address) { + if ( + value?.addresses[destChain.id] !== tokenInfo.canonical?.address && + value?.addresses[destChain.id] !== zeroAddress + ) { log('selected token is bridged', value?.addresses[destChain.id]); $selectedTokenIsBridged = true; } else {