fix(reports): render renewal-letter premium lines as booleans
Build and Push Images / Build jorgecuadros-web (push) Successful in 1m44s
Build and Push Images / Build jorgecuadros-api (push) Successful in 2m1s

`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 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 12:07:32 -07:00
co-authored by Claude Opus 5
parent f7ae0d5342
commit 6dbd4a319b
+2 -2
View File
@@ -595,10 +595,10 @@ function LetterLayout({ result }: { result: ReportRunResult }) {
</div> </div>
<div className="renewal-letter-premium"> <div className="renewal-letter-premium">
{r.netPremium && ( {Boolean(r.netPremium) && (
<span>Prima neta: {formatCell(r.netPremium, "money")}</span> <span>Prima neta: {formatCell(r.netPremium, "money")}</span>
)} )}
{r.total && ( {Boolean(r.total) && (
<span className="renewal-letter-total"> <span className="renewal-letter-total">
Total: {formatCell(r.total, "money")} {String(r.currency ?? "")} Total: {formatCell(r.total, "money")} {String(r.currency ?? "")}
</span> </span>