From 038451e0f3e00e01b33043e9ab654d1d25bca05c Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Wed, 30 Sep 2026 01:12:50 +0200 Subject: [PATCH] Fixed issue that prevents proper logout --- app/hooks/auth.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hooks/auth.tsx b/app/hooks/auth.tsx index ed33738..42096fc 100644 --- a/app/hooks/auth.tsx +++ b/app/hooks/auth.tsx @@ -85,8 +85,8 @@ export function AuthProvider({ children }: PropsWithChildren) { }; const logout = async () => { - const [_, data] = await get("logout"); - if (data === null) { + const [ok, _] = await get("logout"); + if (ok) { setUser(null); notify( {