Fix grecaptcha regression

pull/21833/head
Dariusz Niemczyk 2021-07-29 12:39:32 +02:00
parent ef8d2e8257
commit 7baa3284e3
No known key found for this signature in database
GPG Key ID: 0AD2F70C94CA5B03
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);
}
}