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}