diff --git a/apps/web/src/routes/dashboard.tsx b/apps/web/src/routes/dashboard.tsx index efe896b..3461c89 100644 --- a/apps/web/src/routes/dashboard.tsx +++ b/apps/web/src/routes/dashboard.tsx @@ -215,23 +215,22 @@ function TeamHeuteSection() { if (team.isPending) return null; const data = team.data ?? []; const userMap = new Map((users.data ?? []).map((u) => [u.id, u.name])); + const lockedInLabel = + data.length === 0 + ? 'Heute ist noch niemand locked in.' + : data.length === 1 + ? 'Heute ist 1 Person locked in.' + : `Heute sind ${data.length} Personen locked in.`; if (data.length === 0) { return ( - Heute im Team - - - - Heute hat sich noch niemand locked in. - - - + {lockedInLabel} ); } return ( - Heute im Team + {lockedInLabel} {data.map((u) => (
- Heute hat sich noch niemand locked in. -