From e80c21cc299829300015c5b40dcb3e736c9cb06f Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 26 May 2021 23:45:18 +0100 Subject: [PATCH] Update category creation page --- src/pages/AddCategory/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/AddCategory/index.tsx b/src/pages/AddCategory/index.tsx index ad89b8c..6a011e0 100644 --- a/src/pages/AddCategory/index.tsx +++ b/src/pages/AddCategory/index.tsx @@ -167,6 +167,8 @@ const AddCategory = () => { value={form.values.description} onChange={form.handleChange} onBlur={form.handleBlur} + error={form.touched.description && !!form.errors.description} + errorMessage={form.errors.description} />