mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(frontend): remove captcha ref reset
This commit is contained in:
@@ -45,7 +45,6 @@ export function useLoginPage() {
|
||||
});
|
||||
|
||||
setIsGoogleLoading(false);
|
||||
captchaRef?.reset();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -54,7 +53,6 @@ export function useLoginPage() {
|
||||
if (error) throw error;
|
||||
setFeedback(null);
|
||||
} catch (error) {
|
||||
captchaRef?.reset();
|
||||
setIsGoogleLoading(false);
|
||||
const errorString = JSON.stringify(error);
|
||||
if (errorString.includes("not_allowed")) {
|
||||
@@ -74,7 +72,6 @@ export function useLoginPage() {
|
||||
});
|
||||
|
||||
setIsLoading(false);
|
||||
captchaRef?.reset();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -85,7 +82,6 @@ export function useLoginPage() {
|
||||
});
|
||||
|
||||
setIsLoading(false);
|
||||
captchaRef?.reset();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -98,7 +94,6 @@ export function useLoginPage() {
|
||||
variant: "destructive",
|
||||
});
|
||||
|
||||
captchaRef?.reset();
|
||||
return;
|
||||
}
|
||||
setFeedback(null);
|
||||
|
||||
Reference in New Issue
Block a user