This commit is contained in:
MuslemRahimi 2024-11-09 22:20:28 +01:00
parent 13447b697c
commit 0dd50d1bbe
3 changed files with 14 additions and 5 deletions

View File

@ -69,7 +69,8 @@
></td
>
<td class="text-right cursor-normal"
>{item?.dividendYield !== null
>{item?.dividendYield !== null &&
item?.dividendYield !== undefined
? item?.dividendYield + "%"
: "n/a"}</td
>

View File

@ -67,10 +67,16 @@
></td
>
<td class="text-right cursor-normal"
>{parseFloat(item?.employees).toLocaleString("en-US", {
maximumFractionDigits: 2,
minimumFractionDigits: 0,
})}</td
>{item?.employees !== null &&
item?.employees !== undefined
? parseFloat(item?.employees).toLocaleString(
"en-US",
{
maximumFractionDigits: 2,
minimumFractionDigits: 0,
},
)
: "n/a"}</td
>
</tr>
{/each}

View File

@ -58,6 +58,7 @@
>
<tbody>
{#each similarStocks?.slice(0, 8) as item}
{#if item?.marketCap > 0}
<tr class="border-gray-600 border-b"
><td class="text-left"
><a
@ -70,6 +71,7 @@
>{abbreviateNumber(item?.marketCap)}</td
>
</tr>
{/if}
{/each}
</tbody>
</table>