From aaa41c4f724e636bbd9abc9685813ccc6fdce7ff Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Mon, 5 Oct 2020 21:38:58 +0300 Subject: [PATCH] closes #123 --- frontend-react/src/components/root/IconNavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-react/src/components/root/IconNavBar.tsx b/frontend-react/src/components/root/IconNavBar.tsx index e3f68048e..d1ff97a99 100644 --- a/frontend-react/src/components/root/IconNavBar.tsx +++ b/frontend-react/src/components/root/IconNavBar.tsx @@ -18,7 +18,7 @@ import MyThemeContext from "../../themeContext"; const getFirstFridayDate = () => { const today = new Date(); const month = - today.getDate() <= 7 && today.getDay() <= 5 + today.getDate() - ((1 + today.getDay()) % 7) <= 0 ? today.getMonth() : today.getMonth() + 1;