diff --git a/utils/timeAgo.tsx b/utils/timeAgo.tsx index ac8cde33..eba255c8 100644 --- a/utils/timeAgo.tsx +++ b/utils/timeAgo.tsx @@ -13,7 +13,7 @@ export function formatTimeAgo(date: Date, locale: string = 'en-us') { let duration = (date.getTime() - new Date().getTime()) / 1000 - for (let i = 0; i <= DIVISIONS.length; i++) { + for (let i = 0; i < DIVISIONS.length; i++) { const division = DIVISIONS[i] if (Math.abs(duration) < division.amount) {