From 4be1832b436d1087f5718db5368d86bfee293737 Mon Sep 17 00:00:00 2001
From: Alf Eaton <eaton.alf@gmail.com>
Date: Mon, 18 Sep 2017 16:51:34 +0100
Subject: [PATCH] Only show the messages block when there's an error or warning

---
 src/atoms/ValidatedField.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/atoms/ValidatedField.js b/src/atoms/ValidatedField.js
index 534d8cdec..c878ac5c9 100644
--- a/src/atoms/ValidatedField.js
+++ b/src/atoms/ValidatedField.js
@@ -10,7 +10,7 @@ const ValidatedFieldComponent = ({ component }) => ({ meta, input }) => (
   <div>
     {component(input)}
 
-    {meta.touched && (
+    {meta.touched && (meta.error || meta.warning) && (
       <div className={classes.messages}>
         {meta.error && (
           <div className={classnames(classes.message, classes.error)}>
-- 
GitLab