From 1b37b0a6413cee7b112b82fb71cb6eec47988c44 Mon Sep 17 00:00:00 2001 From: envin Date: Mon, 19 Feb 2024 17:00:51 +0100 Subject: [PATCH] fix(use-swap): fix telos swap type when destination is ptoken --- src/hooks/use-swap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/use-swap.js b/src/hooks/use-swap.js index 4f20a82e..d49606c3 100644 --- a/src/hooks/use-swap.js +++ b/src/hooks/use-swap.js @@ -388,7 +388,8 @@ const useSwap = ({ !from.isNative && !pegoutToTelosEvmAddress && (from.id === TLOS_ON_ETH_MAINNET || from.id === TLOS_ON_BSC_MAINNET) && - isValidAccountByBlockchain(address, 'ETH') + isValidAccountByBlockchain(address, 'ETH') && + to.id === 'TLOS' ) { setPegoutToTelosEvmAddress(true) return