diff --git a/src/lib/components/ETFProfileCard.svelte b/src/lib/components/ETFProfileCard.svelte index 2d9d6343..65877022 100644 --- a/src/lib/components/ETFProfileCard.svelte +++ b/src/lib/components/ETFProfileCard.svelte @@ -26,7 +26,6 @@ let showFullText = false; - $: { if ($etfTicker && typeof $etfTicker !== 'undefined' && typeof window !== 'undefined' && typeof etfProfile !== 'undefined' && etfProfile?.length !== 0) { @@ -125,12 +124,14 @@ let showFullText = false; PE Ratio (ttm) {data?.getStockQuote?.pe?.toFixed(2)} + {#if data?.getStockDividend} Dividend Yield {data?.getStockDividend?.dividendYield?.toFixed(2)}% Payout Ratio {data?.getStockDividend?.payoutRatio?.toFixed(2)}% + {/if} Holdings {holdingsCount} Assets