fix: pass missing poll state setters to SessionInfo WebSocket handler

setPollEndingAt and setShowEndPollOptions were referenced in
SessionInfo's WS handler but never passed as props, causing a
ReferenceError that prevented setPollResult from executing on
delayed poll ends. Bumps version to 0.7.12.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cottongin
2026-05-11 02:03:57 -04:00
parent 1d7395e121
commit a2164c8242
2 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ export const branding = {
app: {
name: 'HSO Jackbox Game Picker',
shortName: 'Jackbox Game Picker',
version: '0.7.11 - Pokémon-Go-To-The-Polls Edition',
version: '0.7.12 - Pokémon-Go-To-The-Polls Edition',
description: 'Spicing up Hyper Spaceout game nights!',
},
meta: {

View File

@@ -1289,6 +1289,8 @@ function Picker() {
setPollActive={setPollActive}
pollActiveRef={pollActiveRef}
setPollResult={setPollResult}
setPollEndingAt={setPollEndingAt}
setShowEndPollOptions={setShowEndPollOptions}
pollStartedAtRef={pollStartedAtRef}
setSelectedGame={setSelectedGame}
setGameSource={setGameSource}
@@ -1299,7 +1301,7 @@ function Picker() {
);
}
function SessionInfo({ sessionId, onGamesUpdate, playingGame, setPlayingGame, setHasPlayedGames, setLeadingGame, setPollActive, pollActiveRef, setPollResult, pollStartedAtRef, setSelectedGame, setGameSource }) {
function SessionInfo({ sessionId, onGamesUpdate, playingGame, setPlayingGame, setHasPlayedGames, setLeadingGame, setPollActive, pollActiveRef, setPollResult, setPollEndingAt, setShowEndPollOptions, pollStartedAtRef, setSelectedGame, setGameSource }) {
const { isAuthenticated, token } = useAuth();
const [games, setGames] = useState([]);
const [loading, setLoading] = useState(true);
@@ -1493,7 +1495,7 @@ function SessionInfo({ sessionId, onGamesUpdate, playingGame, setPlayingGame, se
console.error('[WebSocket] Failed to connect:', error);
reconnectTimeoutRef.current = setTimeout(connectWs, 3000);
}
}, [sessionId, token, loadGames, setPollActive, setPollResult, setLeadingGame, pollActiveRef, pollStartedAtRef, setSelectedGame, setGameSource]);
}, [sessionId, token, loadGames, setPollActive, setPollResult, setPollEndingAt, setShowEndPollOptions, setLeadingGame, pollActiveRef, pollStartedAtRef, setSelectedGame, setGameSource]);
useEffect(() => {
connectWs();