Fixed issue that prevents proper logout

This commit is contained in:
2026-09-30 01:12:50 +02:00
parent b1fa006a0d
commit 038451e0f3

View File

@@ -85,8 +85,8 @@ export function AuthProvider({ children }: PropsWithChildren) {
}; };
const logout = async () => { const logout = async () => {
const [_, data] = await get("logout"); const [ok, _] = await get("logout");
if (data === null) { if (ok) {
setUser(null); setUser(null);
notify( notify(
{ {