This commit is contained in:
Adrian Brzeziński 2023-05-29 20:51:01 +02:00
parent 2f8f2ebd0e
commit 570ab5c9c2
1 changed files with 4 additions and 4 deletions

View File

@ -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(() => {