Merge pull request #6505 from matrix-org/fix/release-grecaptcha-regression

Fix/release grecaptcha regression
pull/21833/head
David Baker 2021-07-29 14:19:09 +01:00 committed by GitHub
commit a7a84df49c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICap
}
private resetRecaptcha() {
if (this.captchaWidgetId !== null) {
global.grecaptcha.reset(this.captchaWidgetId);
if (this.captchaWidgetId) {
global?.grecaptcha?.reset(this.captchaWidgetId);
}
}