diff --git a/src/constants.ts b/src/constants.ts index 9c61508..619c8b6 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -22,7 +22,7 @@ export const RELATIVE_MAP: Record st [TimeUnits.DAY]: 'a day', [TimeUnits.DAY * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.DAY)} days`, [TimeUnits.WEEK]: 'a week', - [TimeUnits.WEEK * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.DAY)} weeks`, + [TimeUnits.WEEK * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.WEEK)} weeks`, [TimeUnits.MONTH]: 'a month', [TimeUnits.MONTH * 2]: (milliseconds) => `${Math.floor(milliseconds / TimeUnits.MONTH)} months`, [TimeUnits.YEAR]: 'a year',