feat(auth): Improve auth dialog error handling and messaging (#11320)

This commit is contained in:
Abhi
2025-10-16 18:08:42 -04:00
committed by GitHub
parent 01c577c371
commit 02241e9126
6 changed files with 18 additions and 7 deletions
+4 -2
View File
@@ -33,9 +33,11 @@ export const useAuthCommand = (settings: LoadedSettings, config: Config) => {
const [authError, setAuthError] = useState<string | null>(null);
const onAuthError = useCallback(
(error: string) => {
(error: string | null) => {
setAuthError(error);
setAuthState(AuthState.Updating);
if (error) {
setAuthState(AuthState.Updating);
}
},
[setAuthError, setAuthState],
);