From 4c73b973e93a78603dd05c38b6290cb262555c18 Mon Sep 17 00:00:00 2001 From: Studio-18 Date: Sun, 8 Feb 2026 07:13:26 -0800 Subject: [PATCH] feat: raise private invite cap to 30 --- src/components/MatchCreatorFlow.jsx | 6 +++--- src/utils/matchPayload.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/MatchCreatorFlow.jsx b/src/components/MatchCreatorFlow.jsx index 0578c863..0a187eae 100644 --- a/src/components/MatchCreatorFlow.jsx +++ b/src/components/MatchCreatorFlow.jsx @@ -53,7 +53,7 @@ import { } from "../utils/recentPlayers"; const HOURS_IN_MS = 60 * 60 * 1000; -const MAX_PRIVATE_INVITES = 12; +const MAX_PRIVATE_INVITES = 30; const pad = (value) => String(value).padStart(2, "0"); @@ -1060,10 +1060,10 @@ const MatchCreatorFlow = ({ onCancel, onReturnHome, onMatchCreated, currentUser onClick={() => setMatchData((prev) => ({ ...prev, - totalPlayers: Math.min(12, prev.totalPlayers + 1), + totalPlayers: Math.min(30, prev.totalPlayers + 1), })) } - disabled={matchData.totalPlayers >= 12} + disabled={matchData.totalPlayers >= 30} className="w-14 h-14 rounded-full border-2 border-gray-300 hover:border-gray-400 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center text-xl font-semibold text-gray-600 transition-colors" > + diff --git a/src/utils/matchPayload.js b/src/utils/matchPayload.js index c0b5f050..7ee00b73 100644 --- a/src/utils/matchPayload.js +++ b/src/utils/matchPayload.js @@ -2,7 +2,7 @@ const isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value); const PLAYER_LIMIT_MIN = 2; -const PLAYER_LIMIT_MAX = 12; +const PLAYER_LIMIT_MAX = 30; const parsePlayerLimit = (value) => { if (value === undefined || value === null) return null;