Fix grecaptcha regression

This commit is contained in:
Dariusz Niemczyk
2021-07-29 12:45:29 +02:00
parent ab7d38717c
commit 7f6cf29766
+2 -2
View File
@@ -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);
} }
} }