Skip to content

Commit

Permalink
remove (form-item): remove probably redundant code piece
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikbuschke committed Jan 13, 2020
1 parent 8bfc5a2 commit ff31425
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/form-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ export const FormItem = ({
}
hasFeedback={isValid}
help={
(showHelp && (
showHelp && (
<>
{hasError && <li>{error}</li>}
{hasInitialError &&
(!isTouched || showInitialErrorAfterTouched) && (
<li>{initialError}</li>
)}
</>
)) ||
(isValid && '')
)
}
{...restProps}
>
Expand Down

0 comments on commit ff31425

Please sign in to comment.