mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Clear recaptcha error on reattempts
This commit is contained in:
parent
0bee4bd72b
commit
b3ccabbe6b
@ -102,6 +102,10 @@ export default class CaptchaForm extends React.Component {
|
||||
console.log("Loaded recaptcha script.");
|
||||
try {
|
||||
this._renderRecaptcha(DIV_ID);
|
||||
// clear error if re-rendered
|
||||
this.setState({
|
||||
errorText: null,
|
||||
});
|
||||
CountlyAnalytics.instance.track("onboarding_grecaptcha_loaded");
|
||||
} catch (e) {
|
||||
this.setState({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user