more
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user