bugfixing

This commit is contained in:
MuslemRahimi 2024-10-20 21:34:27 +02:00
parent 7d41ba229a
commit f51b490f98

View File

@ -204,7 +204,9 @@
<td <td
class="text-white text-sm sm:text-[1rem] text-end font-medium border-b border-[#09090B]" class="text-white text-sm sm:text-[1rem] text-end font-medium border-b border-[#09090B]"
> >
{abbreviateNumber(value)} {value !== null && value !== 0 && value !== undefined
? abbreviateNumber(value)
: "-"}
</td> </td>
{/each} {/each}
</tr> </tr>
@ -222,7 +224,9 @@
? 'text-[#FF2F1F]' ? 'text-[#FF2F1F]'
: 'text-white'} font-medium border-b border-[#09090B]" : 'text-white'} font-medium border-b border-[#09090B]"
> >
{growthValue > 0 ? "+" : ""}{growthValue !== null {growthValue > 0 ? "+" : ""}{growthValue !== null &&
growthValue !== 0 &&
growthValue !== undefined
? growthValue?.toFixed(2) + "%" ? growthValue?.toFixed(2) + "%"
: "-"} : "-"}
</td> </td>