diff --git a/src/helpers/date-helper.ts b/src/helpers/date-helper.ts index ff1b2f8..343906f 100644 --- a/src/helpers/date-helper.ts +++ b/src/helpers/date-helper.ts @@ -125,7 +125,7 @@ export const getLocaleMonth = (date: Date, locale: string) => { */ const getMonday = (date: Date) => { const day = date.getDay(); - const diff = date.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday + const diff = date.getDate() - day + (day === 0 ? -6 : 1); // adjust when day is sunday return new Date(date.setDate(diff)); };