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 }) => (
- - - - + + + +
)}