From 991cb2771f10ef982302d856f46bb51df410c8ac Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Wed, 31 Jan 2024 17:43:52 -0600 Subject: [PATCH] more --- src/Components/Case/CaseTypePage.js | 11 +++++++---- src/Constants/Tags/CaseTags.js | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Components/Case/CaseTypePage.js b/src/Components/Case/CaseTypePage.js index e086cfd..7037ecb 100644 --- a/src/Components/Case/CaseTypePage.js +++ b/src/Components/Case/CaseTypePage.js @@ -43,7 +43,7 @@ const CaseTypePage = () => { useEffect(getCase, [caseId, appUserId]); const setSelectedTag = (item) => { - if (selectedCaseTags.length < 6) { + if (selectedCaseTags.length < 5) { console.log("item in setSelectedTag ---------------------->", item); const temp = [...selectedCaseTags, item.tagName]; setSelectedCaseTags(temp); @@ -54,11 +54,11 @@ const CaseTypePage = () => { const handleTagClick = (arg) => { const temp = selectedCaseTags; const foo = temp.filter((tag) => { - if (tag != arg.value) { + if (tag != arg) { return tag; } }); - selectedCaseTags(foo); + setSelectedCaseTags(foo); }; const radioOptions = [ @@ -169,7 +169,10 @@ const CaseTypePage = () => { {selectedCaseTags.map((tag, i) => (
-
+
handleTagClick(tag)} + >
x
{tag}
diff --git a/src/Constants/Tags/CaseTags.js b/src/Constants/Tags/CaseTags.js index 16080df..69cada6 100644 --- a/src/Constants/Tags/CaseTags.js +++ b/src/Constants/Tags/CaseTags.js @@ -694,13 +694,13 @@ export const caseTags = [ }, { tagId: "cbe77c35-edfb-4dde-8966-b4cc11603647", - tagName: "family law - custoday", + tagName: "family law - custody", mainType: { name: "family law", id: "8e591ed5-ca8e-4569-b1a8-c664dcd678c8", }, subType: { - name: "custoday", + name: "custody", subTypeId: "4c3d7038-9e19-4f45-9921-a1c3d49d19b2", }, },