From 12631a6c64499a54d4385828c3817da85d629166 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Sun, 25 Aug 2019 10:10:58 -0400 Subject: [PATCH] also accept error false --- src/components/formik-forms/formik-input.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/formik-forms/formik-input.jsx b/src/components/formik-forms/formik-input.jsx index 227d3ec3a..e1287b2d7 100644 --- a/src/components/formik-forms/formik-input.jsx +++ b/src/components/formik-forms/formik-input.jsx @@ -53,9 +53,9 @@ const FormikInput = ({ FormikInput.propTypes = { className: PropTypes.string, - error: PropTypes.string, + // error and toolTip can be false, in which case we ignore them + error: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), onSetRef: PropTypes.func, - // toolTip can be false, in which case we ignore it toolTip: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), type: PropTypes.string, validationClassName: PropTypes.string,