From 7e6a3aca49b96d6225a72e074be75153db783dc6 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Sun, 23 Jan 2022 14:46:58 -0500 Subject: [PATCH] fix stats page on mobile --- components/stats_page/StatsPerps.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/stats_page/StatsPerps.tsx b/components/stats_page/StatsPerps.tsx index 8193fdec..c7dbff49 100644 --- a/components/stats_page/StatsPerps.tsx +++ b/components/stats_page/StatsPerps.tsx @@ -95,6 +95,8 @@ export default function StatsPerps({ perpStats }) { return perpsData }, [selectedAsset, perpStats, selectedMarket]) + if (!selectedMarket) return null + const progress = 1 - selectedMarket.liquidityMiningInfo.mngoLeft.toNumber() /