From c931762244b1e4f341b789f405e06a32ab05f1cc Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jul 2020 23:56:29 +0300 Subject: [PATCH] date warning change --- src/helpers/date-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); };