Skip to content

Commit

Permalink
Show both hint and error
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Nov 14, 2024
1 parent 85a80e8 commit e1a82a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/form/fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ function Field({ id, label, hint, children, error }) {
</div>
<div className="profile-option-control-container">
{children}
{hint && !error && (
<div className="profile-option-control-hint">{hint}</div>
)}
{error && <div className="profile-option-control-error">{error}</div>}
{hint && <div className="profile-option-control-hint">{hint}</div>}
</div>
</div>
);
Expand Down

0 comments on commit e1a82a4

Please sign in to comment.