mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 01:11:52 +02:00
Merge pull request #6503 from matrix-org/fix/grecaptcha-regression
Fix grecaptcha regression
This commit is contained in:
commit
f9f9aebef6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user