diff options
| author | Tommaso Sciortino <[email protected]> | 2025-07-07 16:27:24 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-07 23:27:24 +0000 |
| commit | 4e84989d8f6330027327f4fc214055c1cd7bf45b (patch) | |
| tree | dfb4db65a7ba54683ee36c2a8211caecc17055f4 /packages/cli/src/ui/components/AuthDialog.tsx | |
| parent | 426b6905dad7c7b437b665b4750f1307e278d7ce (diff) | |
Fix double "esc" bug in Auth dialog (#3493)
Diffstat (limited to 'packages/cli/src/ui/components/AuthDialog.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/AuthDialog.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/AuthDialog.tsx b/packages/cli/src/ui/components/AuthDialog.tsx index cea6727f..a33e284d 100644 --- a/packages/cli/src/ui/components/AuthDialog.tsx +++ b/packages/cli/src/ui/components/AuthDialog.tsx @@ -66,6 +66,11 @@ export function AuthDialog({ useInput((_input, key) => { if (key.escape) { + // Prevent exit if there is an error message. + // This means they user is not authenticated yet. + if (errorMessage) { + return; + } if (settings.merged.selectedAuthType === undefined) { // Prevent exiting if no auth method is set setErrorMessage( |
