Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0493c08dae | ||
|
|
e55a167df2 | ||
|
|
2ae6269a15 | ||
|
|
f4396d9527 | ||
|
|
352fadadb5 |
@@ -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!`);
|
||||||
window.location.href = '/';
|
navigate({ to: '/' })
|
||||||
}
|
}
|
||||||
} 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
|
||||||
}));
|
}));
|
||||||
window.location.href = '/';
|
navigate({ to: '/' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user