Skip to content

Commit

Permalink
fix(input): hide info when no info text is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
w0wka91 committed Sep 8, 2019
1 parent 96530a2 commit eca97f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ const Input = React.forwardRef<HTMLInputElement, Props>(
) : null}
{error ? (
<InputError>{error}</InputError>
) : (
) : info ? (
<InputInfo>{info}</InputInfo>
)}
) : null}
</div>
)
}
Expand Down

0 comments on commit eca97f2

Please sign in to comment.