Skip to content

Commit

Permalink
fix bug select imported token with similar name to whitelisted token
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane committed Oct 18, 2024
1 parent bb6469f commit cb838e8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/swapv2/LimitOrder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { memo, useState } from 'react'
import { TutorialKeys } from 'components/Tutorial/TutorialSwap'
import Tutorial from 'components/swapv2/LimitOrder/Tutorial'
import { TRANSACTION_STATE_DEFAULT } from 'constants/index'
import useSyncTokenSymbolToUrl from 'hooks/useSyncTokenSymbolToUrl'
import { useLimitActionHandlers, useLimitState } from 'state/limit/hooks'
// import useSyncTokenSymbolToUrl from 'hooks/useSyncTokenSymbolToUrl'
// import { useLimitActionHandlers, useLimitState } from 'state/limit/hooks'
import { useLimitState } from 'state/limit/hooks'
import { TransactionFlowState } from 'types/TransactionFlowState'

import LimitOrderForm from './LimitOrderForm'
Expand All @@ -15,12 +16,12 @@ type Props = {
isSelectCurrencyManual: boolean
}

function LimitOrderComp({ setIsSelectCurrencyManual, isSelectCurrencyManual }: Props) {
const { onSelectPair } = useLimitActionHandlers()
function LimitOrderComp({ setIsSelectCurrencyManual }: Props) {
// const { onSelectPair } = useLimitActionHandlers()

const { currencyIn, currencyOut } = useLimitState()

useSyncTokenSymbolToUrl(currencyIn, currencyOut, onSelectPair, isSelectCurrencyManual)
// useSyncTokenSymbolToUrl(currencyIn, currencyOut, onSelectPair, isSelectCurrencyManual)

const [showTutorial, setShowTutorial] = useState(!localStorage.getItem(TutorialKeys.SHOWED_LO_GUIDE))

Expand Down

0 comments on commit cb838e8

Please sign in to comment.