From 030d44226dbfc91e19ac65d37f572f0606a271bf Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 12 Jun 2026 11:21:05 +0200 Subject: [PATCH] remove isLoggedIn booelan from lichess user, either a user exists or doesnt --- src/components/LichessButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LichessButton.tsx b/src/components/LichessButton.tsx index 17fc911..c4e8e36 100644 --- a/src/components/LichessButton.tsx +++ b/src/components/LichessButton.tsx @@ -6,7 +6,7 @@ const LichessButton = () => { const { user } = useLichessUser(); const onClickHandler = () => { - return user?.isLoggedIn ? lichessLogout() : lichessLogin(); + return user ? lichessLogout() : lichessLogin(); }; return (