Skip to content

Commit

Permalink
fix(bridge-ui): incorrectly detecting bridged tokens (#16007)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK authored Feb 22, 2024
1 parent 14484a0 commit b151bcb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b151bcb

Please sign in to comment.