From 5acc7fe8d4e8394a82f39fbe17a0ee95106415f2 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Mon, 19 Jul 2021 16:49:35 +0200 Subject: [PATCH] Make `errorText` properly optional instead of null --- src/components/views/auth/CaptchaForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/auth/CaptchaForm.tsx b/src/components/views/auth/CaptchaForm.tsx index 4934382fdb..14237b2404 100644 --- a/src/components/views/auth/CaptchaForm.tsx +++ b/src/components/views/auth/CaptchaForm.tsx @@ -27,7 +27,7 @@ interface ICaptchaFormProps { } interface ICaptchaFormState { - errorText: string | null; + errorText?: string; } @@ -40,14 +40,14 @@ export default class CaptchaForm extends React.Component {}, }; - private captchaWidgetId: string | null = null; + private captchaWidgetId?: string; private recaptchaContainer = createRef(); constructor(props: ICaptchaFormProps) { super(props); this.state = { - errorText: null, + errorText: undefined, }; CountlyAnalytics.instance.track("onboarding_grecaptcha_begin");