fix
This commit is contained in:
parent
2f8f2ebd0e
commit
570ab5c9c2
|
@ -81,10 +81,10 @@ const ListMarket = ({ goBack }: { goBack: () => void }) => {
|
||||||
const [marketPk, setMarketPk] = useState('')
|
const [marketPk, setMarketPk] = useState('')
|
||||||
const [currentView, setCurrentView] = useState(VIEWS.BASE_TOKEN)
|
const [currentView, setCurrentView] = useState(VIEWS.BASE_TOKEN)
|
||||||
const [createOpenbookMarketModal, setCreateOpenbookMarket] = useState(false)
|
const [createOpenbookMarketModal, setCreateOpenbookMarket] = useState(false)
|
||||||
const baseBank =
|
const baseBanks = baseToken ? group?.banksMapByName.get(baseToken) : null
|
||||||
group && baseToken ? group.banksMapByName.get(baseToken)![0] : null
|
const quoteBanks = quoteToken ? group?.banksMapByName.get(quoteToken) : null
|
||||||
const quoteBank =
|
const baseBank = baseBanks?.length ? baseBanks[0] : null
|
||||||
group && quoteToken ? group.banksMapByName.get(quoteToken)![0] : null
|
const quoteBank = quoteBanks?.length ? quoteBanks[0] : null
|
||||||
const marketName = `${baseToken?.toUpperCase()}/${quoteToken?.toUpperCase()}`
|
const marketName = `${baseToken?.toUpperCase()}/${quoteToken?.toUpperCase()}`
|
||||||
|
|
||||||
const [baseTokens, quoteTokens] = useMemo(() => {
|
const [baseTokens, quoteTokens] = useMemo(() => {
|
||||||
|
|
Loading…
Reference in New Issue