Skip to content

Commit e7ab262

Browse files
committed
fix(frontend): remove captcha ref reset
1 parent ff58ce1 commit e7ab262

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

autogpt_platform/frontend/src/app/(platform)/login/useLoginPage.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export function useLoginPage() {
4545
});
4646

4747
setIsGoogleLoading(false);
48-
captchaRef?.reset();
4948
return;
5049
}
5150

@@ -54,7 +53,6 @@ export function useLoginPage() {
5453
if (error) throw error;
5554
setFeedback(null);
5655
} catch (error) {
57-
captchaRef?.reset();
5856
setIsGoogleLoading(false);
5957
const errorString = JSON.stringify(error);
6058
if (errorString.includes("not_allowed")) {
@@ -74,7 +72,6 @@ export function useLoginPage() {
7472
});
7573

7674
setIsLoading(false);
77-
captchaRef?.reset();
7875
return;
7976
}
8077

@@ -85,7 +82,6 @@ export function useLoginPage() {
8582
});
8683

8784
setIsLoading(false);
88-
captchaRef?.reset();
8985
return;
9086
}
9187

@@ -98,7 +94,6 @@ export function useLoginPage() {
9894
variant: "destructive",
9995
});
10096

101-
captchaRef?.reset();
10297
return;
10398
}
10499
setFeedback(null);

0 commit comments

Comments
 (0)