Skip to content

Commit

Permalink
fix: lo tab
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Oct 27, 2023
1 parent 809ce24 commit 065397e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/swapv2/LimitOrder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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 { APP_PATHS, TRANSACTION_STATE_DEFAULT } from 'constants/index'
import useSyncTokenSymbolToUrl from 'hooks/useSyncTokenSymbolToUrl'
import { useLimitActionHandlers, useLimitState } from 'state/limit/hooks'
import { TransactionFlowState } from 'types/TransactionFlowState'
Expand All @@ -20,7 +20,8 @@ function LimitOrderComp({ setIsSelectCurrencyManual, isSelectCurrencyManual }: P

const { currencyIn, currencyOut } = useLimitState()

useSyncTokenSymbolToUrl(currencyIn, currencyOut, onSelectPair, isSelectCurrencyManual)
const isPartnerSwap = window.location.pathname.startsWith(APP_PATHS.PARTNER_SWAP)
useSyncTokenSymbolToUrl(currencyIn, currencyOut, onSelectPair, isSelectCurrencyManual, isPartnerSwap)

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

Expand Down

0 comments on commit 065397e

Please sign in to comment.