Make errorText properly optional instead of null
This commit is contained in:
@@ -27,7 +27,7 @@ interface ICaptchaFormProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface ICaptchaFormState {
|
interface ICaptchaFormState {
|
||||||
errorText: string | null;
|
errorText?: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,14 +40,14 @@ export default class CaptchaForm extends React.Component<ICaptchaFormProps, ICap
|
|||||||
onCaptchaResponse: () => {},
|
onCaptchaResponse: () => {},
|
||||||
};
|
};
|
||||||
|
|
||||||
private captchaWidgetId: string | null = null;
|
private captchaWidgetId?: string;
|
||||||
private recaptchaContainer = createRef<HTMLDivElement>();
|
private recaptchaContainer = createRef<HTMLDivElement>();
|
||||||
|
|
||||||
constructor(props: ICaptchaFormProps) {
|
constructor(props: ICaptchaFormProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
errorText: null,
|
errorText: undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
CountlyAnalytics.instance.track("onboarding_grecaptcha_begin");
|
CountlyAnalytics.instance.track("onboarding_grecaptcha_begin");
|
||||||
|
|||||||
Reference in New Issue
Block a user