From 116831750ee959da6fe240fc684bbf1ea64d31c2 Mon Sep 17 00:00:00 2001 From: AaronKeys Date: Sun, 21 Apr 2024 19:23:40 -0400 Subject: [PATCH 1/2] Fix for the tag helper text showing, when there are 6 or less tags. --- FU.SPA/src/components/PostForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FU.SPA/src/components/PostForm.jsx b/FU.SPA/src/components/PostForm.jsx index f48c54a4..9a3e403f 100644 --- a/FU.SPA/src/components/PostForm.jsx +++ b/FU.SPA/src/components/PostForm.jsx @@ -472,7 +472,7 @@ const TagsSelector = ({ onChange, initialValues }) => { {...params} label="Add/Create Tags" placeholder="" - helperText="Maximum of 6 tags" + helperText= {value.length > 6 ? 'Maximum of 6 tags' : ''} /> )} /> From 8066e301fd2054c25d7ebd88a8c6956df2e82379 Mon Sep 17 00:00:00 2001 From: AaronKeys Date: Sun, 21 Apr 2024 19:25:15 -0400 Subject: [PATCH 2/2] format and lint --- FU.SPA/src/components/PostForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FU.SPA/src/components/PostForm.jsx b/FU.SPA/src/components/PostForm.jsx index 9a3e403f..839c7c82 100644 --- a/FU.SPA/src/components/PostForm.jsx +++ b/FU.SPA/src/components/PostForm.jsx @@ -472,7 +472,7 @@ const TagsSelector = ({ onChange, initialValues }) => { {...params} label="Add/Create Tags" placeholder="" - helperText= {value.length > 6 ? 'Maximum of 6 tags' : ''} + helperText={value.length > 6 ? 'Maximum of 6 tags' : ''} /> )} />