Fix paths
This commit is contained in:
parent
22b36f1259
commit
704e8b3ebd
1 changed files with 7 additions and 1 deletions
|
|
@ -163,7 +163,13 @@ export const useGame = () => {
|
||||||
if (auth.isLoading) return;
|
if (auth.isLoading) return;
|
||||||
|
|
||||||
const getTargetPath = () => {
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue