Skip to content

Commit 4fd4f6e

Browse files
committed
Fix hiding the auth dialog when authed
1 parent c18c52d commit 4fd4f6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/browser/components/welcome-dialog.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,11 @@ export function WelcomeDialog() {
939939
cancelDeviceAuth();
940940
}, [setShowWelcomeDialog, cancelDeviceAuth]);
941941

942-
// Show if: not authenticated and not anonymous, OR explicitly requested via showWelcomeDialog, OR rate limited
942+
// Show if: not authenticated and not anonymous, OR explicitly requested via showWelcomeDialog (only when not authenticated), OR rate limited
943943
const shouldShow =
944-
(!isAuthenticated && !isAnonymous) || showWelcomeDialog || isRateLimited;
944+
(!isAuthenticated && !isAnonymous) ||
945+
(showWelcomeDialog && !isAuthenticated) ||
946+
isRateLimited;
945947

946948
if (!shouldShow) {
947949
return null;

0 commit comments

Comments
 (0)