From 98081ae5ebbe5a3429aafd2bd85736de49165110 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 17 Apr 2026 00:47:34 +0200 Subject: [PATCH] fix(pitch-deck): add loading fallback for Unternehmensentwicklung tile Shows "Lade Finanzplan..." when annualKPIs is empty (data not yet loaded) instead of rendering nothing. Co-Authored-By: Claude Opus 4.6 (1M context) --- pitch-deck/components/slides/ExecutiveSummarySlide.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pitch-deck/components/slides/ExecutiveSummarySlide.tsx b/pitch-deck/components/slides/ExecutiveSummarySlide.tsx index 2f0daa5..92f10d6 100644 --- a/pitch-deck/components/slides/ExecutiveSummarySlide.tsx +++ b/pitch-deck/components/slides/ExecutiveSummarySlide.tsx @@ -537,7 +537,9 @@ export default function ExecutiveSummarySlide({ lang, data, investorId }: Execut {de ? 'Jahr' : 'Year'}MA{de ? 'Kunden' : 'Customers'}ARR
- {annualKPIs.map((k, idx) => { + {annualKPIs.length === 0 ? ( +

{de ? 'Lade Finanzplan...' : 'Loading financial plan...'}

+ ) : annualKPIs.map((k, idx) => { const arrLabel = k.arr >= 1_000_000 ? (de ? `~${(k.arr / 1_000_000).toFixed(1).replace('.', ',')} Mio. EUR` : `~EUR ${(k.arr / 1_000_000).toFixed(1)}M`) : (de ? `~${Math.round(k.arr / 1000)}k EUR` : `~EUR ${Math.round(k.arr / 1000)}k`)