This commit is contained in:
Kenneth Jannette
2024-01-31 20:26:42 -06:00
parent 633c92eb7b
commit 56ee3c2d65

View File

@@ -51,7 +51,6 @@ const CaseTypePage = () => {
if (selectedCaseTags.length < 5) {
const temp = [...selectedCaseTags, item.tagName];
setSelectedCaseTags(temp);
console.log("selectedCaseTags", selectedCaseTags);
}
};
@@ -117,11 +116,21 @@ const CaseTypePage = () => {
const valid = validateInput();
if (valid) {
const recordTags = [];
selectedCaseTags.forEach((tag) => {
parsedTags.forEach((item) => {
if (item.tagName.toLowerCase() === tag.toLowerCase()) {
recordTags.push(item);
}
});
});
console.log("~~~~~~~~~~~~~~~~~~~~recordTags", recordTags);
const dataValues = {
leadAttorney: leadAttorney,
contactEmail: contactEmail,
contactName: contactName,
clientPosition: radioValue,
caseTypeTags: recordTags,
};
setIsBusy(true);
try {