remove isLoggedIn booelan from lichess user, either a user exists or doesnt

This commit is contained in:
2026-06-12 11:21:05 +02:00
parent f12176e713
commit 030d44226d
+1 -1
View File
@@ -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 (