From f35629cc96a105d2eb79ae9a024be0efc8f10d9e Mon Sep 17 00:00:00 2001 From: Dicken Date: Tue, 16 Jun 2026 15:59:08 +0200 Subject: [PATCH] fix: Gesamt-Gewinn, kurze Badges (W/A/F/B), Stats sofort beim Mount laden --- frontend/src/App.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 4a46d54..b1cee41 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -726,7 +726,9 @@ function BestellStats() { if (loaded) return; api('/dashboard/stats').then(s => { setStats(s); setLoaded(true); }).catch(() => {}); }; - const toggle = () => { setOpen(v => !v); if (!open) load(); }; + // Sofort beim Mount laden damit Badges im zugeklappten Zustand sichtbar sind + useEffect(() => { load(); }, []); + const toggle = () => { setOpen(v => !v); }; const Row = ({ label, val, color='rgba(255,255,255,0.85)', sub }) => (
- - - - + + + +
)}