From 0ebc0f6d1a7f8288667ef0d0c005a69297107e4c Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Tue, 29 Sep 2026 00:14:42 +0200 Subject: [PATCH] Fixed misuse of api --- 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 3d7eb60..ed33738 100644 --- a/app/hooks/auth.tsx +++ b/app/hooks/auth.tsx @@ -85,7 +85,7 @@ export function AuthProvider({ children }: PropsWithChildren) { }; const logout = async () => { - const data = await get("logout"); + const [_, data] = await get("logout"); if (data === null) { setUser(null); notify( @@ -101,7 +101,7 @@ export function AuthProvider({ children }: PropsWithChildren) { }; const update = async () => { - let data = await get("me"); + let [_, data] = await get("me"); if (data !== undefined) { setUser(data);