mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
fix: redirect issues for authorized users (#374)
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
});
|
||||
|
||||
const ctx = useAuthContext();
|
||||
if (ctx.isAuthorized()) {
|
||||
navigateTo("/home");
|
||||
}
|
||||
|
||||
const api = usePublicApi();
|
||||
const toast = useNotifier();
|
||||
@@ -29,10 +32,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
if (!ctx.isAuthorized()) {
|
||||
navigateTo("/home");
|
||||
}
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user