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 #6505 from matrix-org/fix/release-grecaptcha-regre…
Browse files Browse the repository at this point in the history
…ssion

Fix/release grecaptcha regression
  • Loading branch information
dbkr authored Jul 29, 2021
2 parents ab7d387 + 7f6cf29 commit a7a84df
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 a7a84df

Please sign in to comment.