Skip to content

Commit b3ccabb

Browse files
committed
Clear recaptcha error on reattempts
1 parent 0bee4bd commit b3ccabb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/views/auth/CaptchaForm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ export default class CaptchaForm extends React.Component {
102102
console.log("Loaded recaptcha script.");
103103
try {
104104
this._renderRecaptcha(DIV_ID);
105+
// clear error if re-rendered
106+
this.setState({
107+
errorText: null,
108+
});
105109
CountlyAnalytics.instance.track("onboarding_grecaptcha_loaded");
106110
} catch (e) {
107111
this.setState({

0 commit comments

Comments
 (0)