From 2ce87f8187c2d81d76b467cb9a26ca21ae645ada Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 14 Oct 2024 20:23:01 +0200 Subject: [PATCH] ui fix --- src/lib/components/TickerInfoCard.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/TickerInfoCard.svelte b/src/lib/components/TickerInfoCard.svelte index b094629e..c6bff573 100644 --- a/src/lib/components/TickerInfoCard.svelte +++ b/src/lib/components/TickerInfoCard.svelte @@ -125,9 +125,9 @@ $: { --> Bid - {$wsBidPrice !== 0 && $wsBidPrice !== null ? $wsBidPrice : data?.getStockQuote?.bid} + {$wsBidPrice !== 0 && $wsBidPrice !== null ? $wsBidPrice : (data?.getStockQuote?.bid ?? '-')} Ask - {$wsAskPrice !== 0 && $wsAskPrice !== null ? $wsAskPrice : data?.getStockQuote?.ask} + {$wsAskPrice !== 0 && $wsAskPrice !== null ? $wsAskPrice : (data?.getStockQuote?.ask ?? '-')} Mkt Cap @@ -159,7 +159,7 @@ $: { Open {data?.getStockQuote?.open?.toFixed(2)} Prev. Close - {data?.getStockQuote?.previousClose?.toFixed(2)} + {data?.getStockQuote?.previousClose?.toFixed(2) ?? '-'}