summaryrefslogtreecommitdiff
path: root/frontend/app/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/page.tsx')
-rw-r--r--frontend/app/page.tsx20
1 files changed, 15 insertions, 5 deletions
diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx
index 41408b0..013b93d 100644
--- a/frontend/app/page.tsx
+++ b/frontend/app/page.tsx
@@ -511,6 +511,9 @@ function StatsCard({ overview }: { overview: TickerOverview }) {
{ label: "Payout Ratio", value: fmtPct(overview.ratios.dividend_payout_ratio_ttm), missing: overview.ratios.dividend_payout_ratio_ttm == null }
];
+ const visibleRows = referenceRows.filter((r) => !r.missing);
+ const suppressedCount = referenceRows.length - visibleRows.length;
+
return (
<section className="psm-card">
<div className="psm-card-head">
@@ -519,11 +522,18 @@ function StatsCard({ overview }: { overview: TickerOverview }) {
<h2 className="psm-card-title">Reference</h2>
</div>
</div>
- <div className="psm-stat-list">
- {referenceRows.map((row) => (
- <StatRow key={row.label} label={row.label} value={row.value} missing={row.missing} />
- ))}
- </div>
+ {visibleRows.length > 0 && (
+ <div className="psm-stat-list">
+ {visibleRows.map((row) => (
+ <StatRow key={row.label} label={row.label} value={row.value} missing={false} />
+ ))}
+ </div>
+ )}
+ {suppressedCount > 0 && (
+ <p className="psm-muted-copy" style={{ marginTop: visibleRows.length > 0 ? "var(--sp-4)" : 0 }}>
+ ยท Statement data incomplete
+ </p>
+ )}
</section>
);
}