From 7a1fea65449b56bb1895477c8fe5d587567d9b58 Mon Sep 17 00:00:00 2001 From: eenvin Date: Tue, 28 Nov 2023 15:34:00 +0100 Subject: [PATCH] fix(url): fix url asset selection --- src/store/swap/utils/default-selection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/swap/utils/default-selection.js b/src/store/swap/utils/default-selection.js index 1f14cfaa..4adc0a50 100644 --- a/src/store/swap/utils/default-selection.js +++ b/src/store/swap/utils/default-selection.js @@ -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) )