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( {