Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a7a84df

Browse files
authored
Merge pull request #6505 from matrix-org/fix/release-grecaptcha-regression
Fix/release grecaptcha regression
2 parents ab7d387 + 7f6cf29 commit a7a84df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/auth/CaptchaForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICap
103103
}
104104

105105
private resetRecaptcha() {
106-
if (this.captchaWidgetId !== null) {
107-
global.grecaptcha.reset(this.captchaWidgetId);
106+
if (this.captchaWidgetId) {
107+
global?.grecaptcha?.reset(this.captchaWidgetId);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)