This commit is contained in:
MuslemRahimi 2024-09-28 19:53:16 +02:00
parent 524fa2ed59
commit dd13f00855

View File

@ -71,7 +71,7 @@ $: {
]; ];
Promise.all(asyncFunctions) Promise.all(asyncFunctions)
.then((results) => { .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); const sample = trendList?.filter(item => item?.label === displayData)?.at(0);
flowSentiment = sample?.sentiment; flowSentiment = sample?.sentiment;
accuracy = sample?.accuracy; accuracy = sample?.accuracy;
@ -204,10 +204,7 @@ $: {
<span class="font-medium">${lastPrice ?? 'n/a'}</span>. <span class="font-medium">${lastPrice ?? 'n/a'}</span>.
</div> </div>
{:else} {:else}
<div class="flex justify-center items-center h-80"> <div class="flex justify-center items-center h-80">
<div class="relative"> <div class="relative">