Fix signing
This commit is contained in:
parent
5d3c6320d9
commit
155c000519
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue