mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: link
This commit is contained in:
@@ -198,7 +198,7 @@ function useProtectedRoute(user: UserDto | null, loading = false) {
|
||||
if (!user?.Id && inAuthGroup) {
|
||||
router.replace("/login");
|
||||
} else if (user?.Id && !inAuthGroup) {
|
||||
router.replace("/");
|
||||
router.replace("/home");
|
||||
}
|
||||
}, [user, segments, loading]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user