mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
remove isLoggedIn booelan from lichess user, either a user exists or doesnt
This commit is contained in:
@@ -6,7 +6,7 @@ const LichessButton = () => {
|
|||||||
const { user } = useLichessUser();
|
const { user } = useLichessUser();
|
||||||
|
|
||||||
const onClickHandler = () => {
|
const onClickHandler = () => {
|
||||||
return user?.isLoggedIn ? lichessLogout() : lichessLogin();
|
return user ? lichessLogout() : lichessLogin();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user