mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Make errorText
properly optional instead of null
This commit is contained in:
parent
9e9992078b
commit
5acc7fe8d4
@ -27,7 +27,7 @@ interface ICaptchaFormProps {
|
||||
}
|
||||
|
||||
interface ICaptchaFormState {
|
||||
errorText: string | null;
|
||||
errorText?: string;
|
||||
|
||||
}
|
||||
|
||||
@ -40,14 +40,14 @@ export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICap
|
||||
onCaptchaResponse: () => {},
|
||||
};
|
||||
|
||||
private captchaWidgetId: string | null = null;
|
||||
private captchaWidgetId?: string;
|
||||
private recaptchaContainer = createRef<HTMLDivElement>();
|
||||
|
||||
constructor(props: ICaptchaFormProps) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
errorText: null,
|
||||
errorText: undefined,
|
||||
};
|
||||
|
||||
CountlyAnalytics.instance.track("onboarding_grecaptcha_begin");
|
||||
|
Loading…
Reference in New Issue
Block a user