From 6dbd4a319b55c116eb06fc9878ab97bcc51be149 Mon Sep 17 00:00:00 2001 From: Ricardo Mancinas Date: Sun, 26 Jul 2026 12:07:32 -0700 Subject: [PATCH] fix(reports): render renewal-letter premium lines as booleans `r.netPremium` / `r.total` are strings, so an empty-string value leaked ""` into the JSX instead of rendering nothing. Wrap in Boolean() so the guard is a real conditional. Co-Authored-By: Claude Opus 5 --- apps/web/src/components/ReportRunner.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/ReportRunner.tsx b/apps/web/src/components/ReportRunner.tsx index 40e46e4..cf02d95 100644 --- a/apps/web/src/components/ReportRunner.tsx +++ b/apps/web/src/components/ReportRunner.tsx @@ -595,10 +595,10 @@ function LetterLayout({ result }: { result: ReportRunResult }) {
- {r.netPremium && ( + {Boolean(r.netPremium) && ( Prima neta: {formatCell(r.netPremium, "money")} )} - {r.total && ( + {Boolean(r.total) && ( Total: {formatCell(r.total, "money")} {String(r.currency ?? "")}