Skip to content

Commit bdf59ce

Browse files
Refine 'Just now' display in ActivityTimeline
Extended the duration for which 'Just now' is displayed for recent actions from 1 minute to 2 minutes in the `ActivityTimeline` component. This change provides a more natural and user-friendly experience when viewing very recent activity. The surrounding logic for minutes, hours, etc., remains consistent.
1 parent 0af0a35 commit bdf59ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ActivityTimeline.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import {
3232
const now = new Date();
3333
const diffMs = now.getTime() - date.getTime();
3434

35-
// Handle just now case
36-
if (diffMs < 60000) {
35+
// Show "Just now" for actions within the last 2 minutes
36+
if (diffMs < 120000) {
3737
return "Just now";
3838
}
3939

0 commit comments

Comments
 (0)