fix perp market logo

This commit is contained in:
tjs 2022-11-19 15:10:32 -05:00
parent 561eba493b
commit de2fa43bae
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ const MarketLogos = ({ market }: { market: Serum3Market | PerpMarket }) => {
(t) => t.address === quoteBank.mint.toString()
)
} else {
jupiterBaseToken = mangoTokens.find(
(t) => t.symbol === market.name.split('-')[0]
)
jupiterBaseToken =
mangoTokens.find((t) => t.symbol === market.name.split('-')[0]) ||
mangoTokens.find((t) => t.symbol.includes(market.name.split('-')[0]))
}
const baseLogoURI = jupiterBaseToken ? jupiterBaseToken.logoURI : ''
const quoteLogoURI = jupiterQuoteToken ? jupiterQuoteToken.logoURI : ''