Fix signing

This commit is contained in:
Joey Yakimowich-Payne 2026-01-25 09:14:08 -07:00
commit 155c000519
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1

View file

@ -204,8 +204,8 @@ export const useGame = (defaultGameConfig?: GameConfig) => {
if (auth.isLoading) return; if (auth.isLoading) return;
const getTargetPath = () => { const getTargetPath = () => {
// Don't interfere with special routes unless we have an active game
if ( if (
location.pathname === '/callback' ||
location.pathname.startsWith('/shared/') || location.pathname.startsWith('/shared/') ||
location.pathname === '/upgrade' || location.pathname === '/upgrade' ||
location.pathname === '/payment/success' || location.pathname === '/payment/success' ||
@ -214,6 +214,12 @@ export const useGame = (defaultGameConfig?: GameConfig) => {
return null; return null;
} }
// For /callback, only skip navigation if we're in LANDING state (auth still processing)
// Once a game starts, we should navigate to the proper game URL
if (location.pathname === '/callback' && gameState === 'LANDING') {
return null;
}
// Don't redirect away from game URLs during initial load - let initializeFromUrl handle it // Don't redirect away from game URLs during initial load - let initializeFromUrl handle it
const isGameUrl = /^\/host\/[A-Z0-9]+$/i.test(location.pathname) || const isGameUrl = /^\/host\/[A-Z0-9]+$/i.test(location.pathname) ||
/^\/play\/[A-Z0-9]+$/i.test(location.pathname); /^\/play\/[A-Z0-9]+$/i.test(location.pathname);