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

Commit

Permalink
Merge pull request #6503 from matrix-org/fix/grecaptcha-regression
Browse files Browse the repository at this point in the history
Fix grecaptcha regression
  • Loading branch information
Palid authored Jul 29, 2021
2 parents ef8d2e8 + 7baa328 commit f9f9aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/auth/CaptchaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit f9f9aeb

Please sign in to comment.