linter fixes
Some checks failed
Check / Lint and Check (push) Has been cancelled

This commit is contained in:
2025-11-15 15:28:19 +01:00
parent bf51e2f16b
commit ab3e044a44
4 changed files with 46 additions and 84 deletions

View File

@@ -1,7 +1,7 @@
import eventConfig from "@/event-dates.json";
export function isSignupBlocked(currentTime?: Date): { blocked: boolean; message?: string } {
const now = currentTime || new Date();
const now = currentTime ?? new Date();
const cutoffTime = eventConfig.cutoffTime || "15:00";
const blockDurationHours = eventConfig.blockDurationHours || 6;