From 2f65f5bec8abfc5b3bf1e2d93c144e99b2d81f7e Mon Sep 17 00:00:00 2001 From: maciek Date: Wed, 4 Oct 2023 14:54:23 +0200 Subject: [PATCH] chore: redesign market header - fix failing ts check --- apps/trading/client-pages/market/market-header-stats.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/trading/client-pages/market/market-header-stats.tsx b/apps/trading/client-pages/market/market-header-stats.tsx index 6e4a4800a..727051b63 100644 --- a/apps/trading/client-pages/market/market-header-stats.tsx +++ b/apps/trading/client-pages/market/market-header-stats.tsx @@ -148,11 +148,13 @@ export const IndexPrice = ({ decimalPlaces?: number; }) => { const { data: externalTwap } = useExternalTwap(marketId); - return ( + return externalTwap && decimalPlaces ? ( + ) : ( + '-' ); };