mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-28 14:18:04 -05:00
Fix bracket censor buttons showing before tournament has been finalized
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user