diff --git a/src/utils/tradingview.tsx b/src/utils/tradingview.tsx index 5fa888ad7..1f620be62 100644 --- a/src/utils/tradingview.tsx +++ b/src/utils/tradingview.tsx @@ -1,10 +1,12 @@ import { USE_MARKETS } from './markets'; export const findTVMarketFromAddress = (marketAddressString: string) => { + let m_name = 'SRM/USDC'; USE_MARKETS.forEach((market) => { if (market.address.toBase58() === marketAddressString) { - return market.name; + m_name = market.name; } }); - return 'SRM/USDC'; + + return m_name; };