Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/MatchCreatorFlow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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"
>
+
Expand Down
2 changes: 1 addition & 1 deletion src/utils/matchPayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down