mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-08 20:26:08 -05:00
plus server month calendar bug fix
This commit is contained in:
@@ -25,7 +25,7 @@ import { USER } from "../../graphql/queries/user"
|
||||
const getFirstFridayDate = () => {
|
||||
const today = new Date()
|
||||
const month =
|
||||
today.getDate() < 7 && today.getDay() > 5
|
||||
today.getDate() <= 7 && today.getDay() <= 5
|
||||
? today.getMonth()
|
||||
: today.getMonth() + 1
|
||||
|
||||
@@ -124,10 +124,6 @@ const CalendarPage: React.FC<RouteComponentProps> = () => {
|
||||
const thisMonth = time.getMonth()
|
||||
const printWeekHeader = weekNumber !== lastPrintedWeek
|
||||
|
||||
/*const isFriday = time.getDay() === 5
|
||||
const isFirstFridayOfTheMonth = isFriday && thisDay <= 7
|
||||
const displayPlusServerVotingInfo = isPlusServerMember && isFirstFridayOfTheMonth*/
|
||||
|
||||
const printDayHeader =
|
||||
thisDay !== lastPrintedDay || thisMonth !== lastPrintedMonth
|
||||
if (printWeekHeader) {
|
||||
|
||||
Reference in New Issue
Block a user