This commit is contained in:
Kalle (Sendou) 2020-10-05 21:38:58 +03:00
parent ee7afd38ff
commit aaa41c4f72

View File

@ -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;