Hotfix #27
@@ -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