This commit is contained in:
Kenneth Jannette
2024-01-31 20:31:03 -06:00
parent 56ee3c2d65
commit b7625d6c95
9 changed files with 11 additions and 17 deletions

View File

@@ -70,7 +70,6 @@ const CaseTypePage = () => {
];
const handleSetRadioValue = (e) => {
console.log("e", e);
setRadioValue(e.value);
};
@@ -80,12 +79,12 @@ const CaseTypePage = () => {
};
const validateInput = () => {
console.log(radioValue);
const leadAttorneyValid = leadAttorney.length > 2;
const contactEmailValid = validateEmail(contactEmail);
const caseTypeValid = selectedCaseTags.length > 0;
const clientPositionValid =
radioValue === "Defendant" || radioValue === "Plaintiff";
const allValid =
leadAttorneyValid &&
contactEmailValid &&
@@ -124,13 +123,13 @@ const CaseTypePage = () => {
}
});
});
console.log("~~~~~~~~~~~~~~~~~~~~recordTags", recordTags);
const dataValues = {
leadAttorney: leadAttorney,
contactEmail: contactEmail,
contactName: contactName,
clientPosition: radioValue,
caseTypeTags: recordTags,
caseTags: recordTags,
};
setIsBusy(true);
try {