diff --git a/hooks/useGame.ts b/hooks/useGame.ts index 983db1e..aa72aa0 100644 --- a/hooks/useGame.ts +++ b/hooks/useGame.ts @@ -163,7 +163,13 @@ export const useGame = () => { if (auth.isLoading) return; const getTargetPath = () => { - if (location.pathname === '/callback' || location.pathname.startsWith('/shared/')) { + if ( + location.pathname === '/callback' || + location.pathname.startsWith('/shared/') || + location.pathname === '/upgrade' || + location.pathname === '/payment/success' || + location.pathname === '/payment/cancel' + ) { return null; }