This commit is contained in:
MuslemRahimi 2025-02-10 00:10:46 +01:00
parent 7a2bc1ba47
commit dbe45710c4
2 changed files with 17 additions and 14 deletions

View File

@ -961,7 +961,7 @@
>
<td
class="whitespace-nowrap px-0.5 py-[1px] text-left text-sm font-semibold xs:px-1 sm:py-2 sm:text-right sm:text-[1rem]"
>{abbreviateNumber(data?.getStockQuote?.volume)}</td
>{data?.getStockQuote?.volume ? abbreviateNumber(data?.getStockQuote?.volume) : 'n/a'}</td
></tr
>
@ -1023,18 +1023,8 @@
: (data?.getStockQuote?.ask ?? "-")}</td
></tr
>
<tr
class="flex flex-col border-b border-gray-600 py-1 sm:table-row sm:py-0"
><td
class="whitespace-nowrap px-0.5 py-[1px] xs:px-1 sm:py-2 text-sm sm:text-[1rem]"
>Avg. Volume</td
>
<td
class="whitespace-nowrap px-0.5 py-[1px] text-left text-sm font-semibold xs:px-1 sm:py-2 sm:text-right sm:text-[1rem]"
>{abbreviateNumber(data?.getStockQuote?.avgVolume)}</td
></tr
>
<tr
class="flex flex-col border-b border-gray-600 py-1 sm:table-row sm:py-0"
><td
@ -1047,6 +1037,19 @@
></tr
>
<tr
class="flex flex-col border-b border-gray-600 py-1 sm:table-row sm:py-0"
><td
class="whitespace-nowrap px-0.5 py-[1px] xs:px-1 sm:py-2 text-sm sm:text-[1rem]"
>Avg. Volume</td
>
<td
class="whitespace-nowrap px-0.5 py-[1px] text-left text-sm font-semibold xs:px-1 sm:py-2 sm:text-right sm:text-[1rem]"
>{data?.getStockQuote?.avgVolume ? abbreviateNumber(data?.getStockQuote?.avgVolume) : 'n/a'}</td
></tr
>
<tr

View File

@ -488,7 +488,7 @@
<td
class="text-end text-sm sm:text-[1rem] whitespace-nowrap text-white"
>
{item?.volume?.toLocaleString("en-US")}
{item?.volume ? item?.volume?.toLocaleString("en-US") : 'n/a'}
</td>
</tr>
{/each}