bugfixing

This commit is contained in:
MuslemRahimi 2025-02-22 12:40:29 +01:00
parent 65a05fdc30
commit 92fa85c144
2 changed files with 13 additions and 8 deletions

View File

@ -259,6 +259,8 @@
? "Half-Yearly" ? "Half-Yearly"
: payoutFrequency === 1 : payoutFrequency === 1
? "Annually" ? "Annually"
: payoutFrequency > 4
? "Weekly"
: "n/a"} : "n/a"}
</div> </div>
</div> </div>
@ -272,7 +274,9 @@
<div <div
class="mt-1 break-words font-semibold leading-8 text-light text-xl" class="mt-1 break-words font-semibold leading-8 text-light text-xl"
> >
{payoutRatio !== "0.00" ? payoutRatio : "0"}% {payoutRatio !== "0.00" && payoutRatio !== null
? payoutRatio + "%"
: "n/a"}
</div> </div>
</div> </div>
<div class="p-4 bp:p-5 sm:p-6 border-t border-r border-contrast"> <div class="p-4 bp:p-5 sm:p-6 border-t border-r border-contrast">

View File

@ -1,8 +1,5 @@
<script lang="ts"> <script lang="ts">
import { import { displayCompanyName, stockTicker } from "$lib/store";
displayCompanyName,
stockTicker,
} from "$lib/store";
import Infobox from "$lib/components/Infobox.svelte"; import Infobox from "$lib/components/Infobox.svelte";
import SEO from "$lib/components/SEO.svelte"; import SEO from "$lib/components/SEO.svelte";
@ -174,6 +171,8 @@
? "Half-Yearly" ? "Half-Yearly"
: payoutFrequency === 1 : payoutFrequency === 1
? "Annually" ? "Annually"
: payoutFrequency > 4
? "Weekly"
: "n/a"} : "n/a"}
</div> </div>
</div> </div>
@ -187,7 +186,9 @@
<div <div
class="mt-1 break-words font-semibold leading-8 text-light text-xl" class="mt-1 break-words font-semibold leading-8 text-light text-xl"
> >
{payoutRatio !== "0.00" ? payoutRatio : "0"}% {payoutRatio !== "0.00" && payoutRatio !== null
? payoutRatio + "%"
: "n/a"}
</div> </div>
</div> </div>
<div class="p-4 bp:p-5 sm:p-6 border-t border-r border-contrast"> <div class="p-4 bp:p-5 sm:p-6 border-t border-r border-contrast">