Skip to content

Commit

Permalink
fix(url): fix url asset selection
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Nov 28, 2023
1 parent c6e1a2a commit 7a1fea6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/swap/utils/default-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ const getDefaultSelectionV2 = (

const assetTo = _assets.find(
({ nativeSymbol, blockchain, address }) =>
nativeSymbol.toLowerCase() === asset.toLowerCase() &&
(asset.toLowerCase() === 'ethpnt'
? nativeSymbol.toLowerCase() === 'pnt'
: nativeSymbol.toLowerCase() === asset.toLowerCase()) &&
blockchain.toLowerCase() === to.toLowerCase() &&
(algorand_to_assetid && blockchain === 'ALGORAND' ? address === algorand_to_assetid : true)
)
Expand Down

0 comments on commit 7a1fea6

Please sign in to comment.