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