fixing logged in flag

This commit is contained in:
2025-12-10 01:11:27 +00:00
parent b6c9d8d80f
commit 932cf329e5

View File

@@ -5,7 +5,7 @@ import { useAuthStore } from "@/stores/auth";
const auth = useAuthStore();
const username = ref("");
const password = ref("");
const loggedIn = computed(() => Object.keys(auth.user.ID || {}).length > 0);
const loggedIn = computed(() => !!auth.user.username);
function handleLogin() {
auth.logIn(username.value, password.value);