Merge pull request #6503 from matrix-org/fix/grecaptcha-regression
Fix grecaptcha regressionpull/21833/head
						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…
	
		Reference in New Issue
	
	 Dariusz Niemczyk
						Dariusz Niemczyk