From de2fa43bae8e4f10d5e6b9c9e370a1b9efb6674a Mon Sep 17 00:00:00 2001 From: tjs Date: Sat, 19 Nov 2022 15:10:32 -0500 Subject: [PATCH] fix perp market logo --- components/trade/MarketLogos.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/trade/MarketLogos.tsx b/components/trade/MarketLogos.tsx index 1ba1a47d..880638fd 100644 --- a/components/trade/MarketLogos.tsx +++ b/components/trade/MarketLogos.tsx @@ -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 : ''