Skip to content

Commit

Permalink
Update src/helperFunctions/getIdleSinceText.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Kumar Singh <[email protected]>
  • Loading branch information
yesyash and shubhamsinghbundela authored Oct 27, 2023
1 parent 738a730 commit 74e0dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helperFunctions/getIdleSinceText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const getIdleSinceText = (idleSince: string) => {
new Date(idleSinceDateInUtc).valueOf()) /
TOTAL_MILLISECONDS_IN_A_HOUR
);
const idealDays = Math.round(differenceInHours / 24);
const idleDays = Math.round(differenceInHours / 24);

if (idealDays <= 0) {
return `${differenceInHours} hours ago`;
Expand Down

0 comments on commit 74e0dcd

Please sign in to comment.