Skip to content
Snippets Groups Projects
Commit 4be1832b authored by Alf Eaton's avatar Alf Eaton
Browse files

Only show the messages block when there's an error or warning

parent 251bc24e
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ const ValidatedFieldComponent = ({ component }) => ({ meta, input }) => ( ...@@ -10,7 +10,7 @@ const ValidatedFieldComponent = ({ component }) => ({ meta, input }) => (
<div> <div>
{component(input)} {component(input)}
{meta.touched && ( {meta.touched && (meta.error || meta.warning) && (
<div className={classes.messages}> <div className={classes.messages}>
{meta.error && ( {meta.error && (
<div className={classnames(classes.message, classes.error)}> <div className={classnames(classes.message, classes.error)}>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment