diff --git a/src/renderer/router/app-outlet.tsx b/src/renderer/router/app-outlet.tsx
index 621f32522..72bc44d37 100644
--- a/src/renderer/router/app-outlet.tsx
+++ b/src/renderer/router/app-outlet.tsx
@@ -34,7 +34,11 @@ export const AppOutlet = ({ redirectTo }: PrivateOutletProps) => {
const actions = [isServerRequired, isCredentialRequired, isMpvRequired];
const actionRequired = actions.some((c) => c);
- if (actionRequired) {
+ if (isAuthenticated) {
+ return ;
+ }
+
+ if (isAuthenticated && actionRequired) {
return (
{
);
}
- if (isAuthenticated) {
- return ;
- }
-
logout();
return ;
};