From ff314257f20980d4f770b226e6a858a3363ca648 Mon Sep 17 00:00:00 2001 From: Jannik Buschke Date: Mon, 13 Jan 2020 23:44:24 +0100 Subject: [PATCH] remove (form-item): remove probably redundant code piece --- src/form-item/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/form-item/index.tsx b/src/form-item/index.tsx index a678c23..cbb5229 100644 --- a/src/form-item/index.tsx +++ b/src/form-item/index.tsx @@ -45,7 +45,7 @@ export const FormItem = ({ } hasFeedback={isValid} help={ - (showHelp && ( + showHelp && ( <> {hasError &&
  • {error}
  • } {hasInitialError && @@ -53,8 +53,7 @@ export const FormItem = ({
  • {initialError}
  • )} - )) || - (isValid && '') + ) } {...restProps} >