Fix bracket censor buttons showing before tournament has been finalized
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-04-03 11:01:04 +03:00
parent 65a97271ea
commit 1b6198a95e

View File

@@ -10,8 +10,9 @@ export function useBracketSpoilerCensor() {
const { isEnabled, isCensored, reveal, hide } = useSpoilerFree();
const withinSpoilerWindow =
tournament.ctx.isFinalized &&
differenceInDays(new Date(), tournament.ctx.startTime) <
TOURNAMENT.VOD_VISIBILITY_DAYS;
TOURNAMENT.VOD_VISIBILITY_DAYS;
const censored = withinSpoilerWindow && isCensored(tournament.ctx.id);