From d3d78f37858419bc81e38e83ee6cad82c3ce3024 Mon Sep 17 00:00:00 2001 From: Dan Bastin Date: Thu, 6 Mar 2025 13:42:54 -0500 Subject: [PATCH] name to lobbyName --- .../CreateGameForm/CreateGameForm.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/_components/_sharedcomponents/CreateGameForm/CreateGameForm.tsx b/src/app/_components/_sharedcomponents/CreateGameForm/CreateGameForm.tsx index b3287cb..36c2704 100644 --- a/src/app/_components/_sharedcomponents/CreateGameForm/CreateGameForm.tsx +++ b/src/app/_components/_sharedcomponents/CreateGameForm/CreateGameForm.tsx @@ -53,7 +53,7 @@ const CreateGameForm = () => { const [deckErrorDetails, setDeckErrorDetails] = useState(undefined); // Additional State for Non-Creategame Path - const [gameName, setGameName] = useState(''); + const [lobbyName, setLobbyName] = useState(''); const [privacy, setPrivacy] = useState('Public'); const handleChangeFormat = (format: SwuGameFormat) => { @@ -103,6 +103,7 @@ const CreateGameForm = () => { deck: deckData, isPrivate: privacy === 'Private', format: format, + lobbyName: lobbyName, }; const response = await fetch(`${process.env.NEXT_PUBLIC_ROOT_URL}/api/create-lobby`, { @@ -267,20 +268,20 @@ const CreateGameForm = () => { {/* Additional Fields for Non-Creategame Path */} {!isCreateGamePath && ( <> - {/* Game Name Input + Game Name Input Game Name ) => - setGameName(e.target.value) + setLobbyName(e.target.value) } placeholder="Game #" /> - */} + {/* Format Selection */}