Skip to content

Commit

Permalink
fix(use-swap): fix telos swap type when destination is ptoken
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Feb 19, 2024
1 parent f76e6e6 commit 1b37b0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/use-swap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b37b0a

Please sign in to comment.