Skip to content

Commit

Permalink
Set fixed 10 min interval to update news items (#26336)
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m authored Nov 3, 2024
1 parent 241b8ce commit 70595b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/common/useRelativeTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRelativeTime = (time: Date | number) => {
const amount = Math.floor(diff / duration)
return {
formatted: rtf.format(amount, unit ),
updatesIn: duration - (Math.abs(diff - amount)),
updatesIn: 10 * minute,
}
}

Expand Down

0 comments on commit 70595b5

Please sign in to comment.