From dd13f00855b2c5e92ba4c6f85af80ea4ea72f4f6 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 28 Sep 2024 19:53:16 +0200 Subject: [PATCH] typo --- src/lib/components/TrendAnalysis.svelte | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/components/TrendAnalysis.svelte b/src/lib/components/TrendAnalysis.svelte index 0f4203b6..8f83d168 100644 --- a/src/lib/components/TrendAnalysis.svelte +++ b/src/lib/components/TrendAnalysis.svelte @@ -71,7 +71,7 @@ $: { ]; Promise.all(asyncFunctions) .then((results) => { - lastPrice = data?.getStockQuote?.price ?? "n/a"; + lastPrice = data?.getStockQuote?.price?.toFixed(2) ?? "n/a"; const sample = trendList?.filter(item => item?.label === displayData)?.at(0); flowSentiment = sample?.sentiment; accuracy = sample?.accuracy; @@ -204,10 +204,7 @@ $: { ${lastPrice ?? 'n/a'}. - - - - + {:else}