Merge pull request #6505 from matrix-org/fix/release-grecaptcha-regression
Fix/release grecaptcha regressionpull/21833/head
commit
a7a84df49c
|
@ -103,8 +103,8 @@ export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICap
|
||||||
}
|
}
|
||||||
|
|
||||||
private resetRecaptcha() {
|
private resetRecaptcha() {
|
||||||
if (this.captchaWidgetId !== null) {
|
if (this.captchaWidgetId) {
|
||||||
global.grecaptcha.reset(this.captchaWidgetId);
|
global?.grecaptcha?.reset(this.captchaWidgetId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue