diff --git a/app/src/pages/Dashboard.tsx b/app/src/pages/Dashboard.tsx index 0787629..9c9113a 100644 --- a/app/src/pages/Dashboard.tsx +++ b/app/src/pages/Dashboard.tsx @@ -332,7 +332,13 @@ export default function Dashboard() { if (!data) return null; const now = new Date(); - const greeting = now.getHours() >= 18 ? 'Dobry wieczór' : 'Dzień dobry'; + const hour = now.getHours(); + const greeting = + hour >= 22 || hour < 6 + ? 'Dobrej nocy' + : hour >= 18 + ? 'Dobry wieczór' + : 'Dzień dobry'; const dateLine = now.toLocaleDateString('pl-PL', { weekday: 'long', day: 'numeric',