diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte index c881ddfc..499bd2b8 100644 --- a/src/routes/stocks/[tickerID]/+layout.svelte +++ b/src/routes/stocks/[tickerID]/+layout.svelte @@ -315,8 +315,10 @@ // Set display legend displayLegend = { close: - currentDataRowOneDay?.close?.toFixed(2) ?? - data?.getStockQuote?.price?.toFixed(2), + $realtimePrice !== null + ? $realtimePrice + : (currentDataRowOneDay?.close?.toFixed(2) ?? + data?.getStockQuote?.price?.toFixed(2)), date: safeFormattedDate, change, }; @@ -784,7 +786,7 @@ {/if} - {#if Object?.keys(prePostData)?.length !== 0} + {#if Object?.keys(prePostData)?.length !== 0 && !$isOpen}