fix run dev

This commit is contained in:
Ruben Fiszel
2023-02-14 02:42:19 +01:00
parent 5b7ce39496
commit f446ca14f5
+2 -2
View File
@@ -1,7 +1,7 @@
import { get } from "svelte/store";
import { type User, UserService } from "$lib/gen";
import { superadmin, type UserExt } from "./stores.js";
import { logout } from "./logout.js";
import { goto } from "$app/navigation";
export async function refreshSuperadmin(): Promise<void> {
if (get(superadmin) == undefined) {
@@ -14,7 +14,7 @@ export async function refreshSuperadmin(): Promise<void> {
}
} catch {
superadmin.set(false);
await logout();
goto("/user/logout");
}
}
}