Skip to content

Commit 4e2f5ce

Browse files
committed
fix: correct greeting logic for afternoon time
1 parent 61566e1 commit 4e2f5ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function HomePage() {
4949
const greetings = () => {
5050
const hour = currentTime.getHours();
5151
if (hour < 12) return 'Good Morning';
52-
if (hour < 18) return 'Good Afternoon';
52+
if (hour < 17) return 'Good Afternoon';
5353
return 'Good Evening';
5454
}
5555

0 commit comments

Comments
 (0)