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 {

View File

@@ -171,7 +171,7 @@ const DocumentListPage = ({ perPage }) => {
if (!group) {
return null;
}
console.log("allDocs", allDocs);
const DesktopContent = () => {
return (
<>

View File

@@ -18,8 +18,6 @@ const ConfirmModal = ({
setIssueText,
reportDoc,
}) => {
console.log("isReport", isReport);
return (
<Modal show="true" onHide={onCancel} size="lg">
<Modal.Header closeButton>

View File

@@ -126,7 +126,7 @@ const UploadModal = (props) => {
try {
const response = await processFile();
console.log("response in upload modal", response);
if (response.res?.status !== 200) {
saveToDb(response.uuidName);
return;

View File

@@ -3,9 +3,8 @@ import { AuthContext } from "../Context/AuthProvider";
import { Navigate } from "react-router-dom";
const PrivateRoute = ({ children }) => {
console.log("AuthContext", AuthContext);
const { currentUserEmail } = useContext(AuthContext);
console.log("currentUserEmail", currentUserEmail);
return currentUserEmail === null ? <Navigate to="/" /> : children;
};

View File

@@ -287,7 +287,6 @@ const SignupPage = () => {
const data = await response.json();
console.log("data in stripe auth call -------------++++++++++++++", data);
//subscriptionId = response.subscriptionId;
//customerId = response.customerId;
@@ -303,7 +302,6 @@ const SignupPage = () => {
const handleSignup = async (e) => {
e.preventDefault();
console.log("handleSignup");
const paymentDataValues = validatePaymentData();
if (paymentDataValues === null) {
@@ -323,7 +321,7 @@ const SignupPage = () => {
paymentDataValues,
dataValues
);
console.log("----------------------------->>>>>>>>>>>>>>>>>data", data);
const customerId = data.data.customerId;
const subscriptionId = data.data.subscriptionId;
@@ -350,7 +348,7 @@ const SignupPage = () => {
}
} catch (error) {
setIsBusy(false);
console.log("-------->error", error);
setNotice(
error.message || "Sorry, something went wrong. Please try again."
);