Compare commits
3
Commits
0493c08dae
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eafe5c24cf | ||
|
|
dbfda83e14 | ||
|
|
8fde1c9362 |
@@ -21,7 +21,7 @@ const useConsumeCode = (onWrongCode: () => void) => {
|
||||
} else {
|
||||
queryClient.setQueryData(playerKeys.auth, response.data);
|
||||
toast.success(t`Successfully logged in. Welcome back!`);
|
||||
navigate({ to: '/' })
|
||||
window.location.href = '/';
|
||||
}
|
||||
} else if (data.status === 'INCORRECT_USER_INPUT_CODE_ERROR') {
|
||||
onWrongCode();
|
||||
|
||||
@@ -21,7 +21,7 @@ const useCreateUser = () => {
|
||||
...old,
|
||||
user: data
|
||||
}));
|
||||
navigate({ to: '/' });
|
||||
window.location.href = '/';
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user