fix(pitch-deck): Investitionen tab shows values (was empty due to values_invest field)
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m2s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 27s
CI / test-python-voice (push) Successful in 31s
CI / test-bqas (push) Successful in 31s

getValues() now reads values_invest for investment rows.
Previously only read values/values_total/values_brutto, missing the
invest-specific field name.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-20 10:38:03 +02:00
parent 66fb265f22
commit 34b519eebb

View File

@@ -81,7 +81,7 @@ function LabelWithTooltip({ label }: { label: string }) {
}
function getValues(row: SheetRow): Record<string, number> {
return row.values || row.values_total || row.values_brutto || {}
return row.values || row.values_total || row.values_brutto || (row as Record<string, unknown>).values_invest as Record<string, number> || {}
}
function formatCell(v: number | undefined): string {