From 9408fe2a079fa9c104a901f76fe74e75a374c38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C4=B1dvan=20Akca?= Date: Fri, 3 Mar 2023 18:43:18 +0300 Subject: [PATCH] feat: remove helperText from profile setting page if there is no error --- packages/web/src/pages/ProfileSettings/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/web/src/pages/ProfileSettings/index.tsx b/packages/web/src/pages/ProfileSettings/index.tsx index 0c9580c4..af3de5b4 100644 --- a/packages/web/src/pages/ProfileSettings/index.tsx +++ b/packages/web/src/pages/ProfileSettings/index.tsx @@ -153,7 +153,9 @@ function ProfileSettings() { margin="normal" type="password" error={touchedFields.password && !!errors?.password} - helperText={errors?.password?.message || ' '} + helperText={ + (touchedFields.password && errors?.password?.message) || '' + } />