mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
simplify
This commit is contained in:
+1
-3
@@ -4,9 +4,7 @@ import type { PageLoad } from './$types';
|
||||
import { user } from '$lib/stores/user';
|
||||
|
||||
export const load: PageLoad = async () => {
|
||||
if (user) {
|
||||
return;
|
||||
} else {
|
||||
if (!user) {
|
||||
redirect(302, `${base}/login`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user