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 {
|
||||
|
||||
@@ -171,7 +171,7 @@ const DocumentListPage = ({ perPage }) => {
|
||||
if (!group) {
|
||||
return null;
|
||||
}
|
||||
console.log("allDocs", allDocs);
|
||||
|
||||
const DesktopContent = () => {
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -18,8 +18,6 @@ const ConfirmModal = ({
|
||||
setIssueText,
|
||||
reportDoc,
|
||||
}) => {
|
||||
console.log("isReport", isReport);
|
||||
|
||||
return (
|
||||
<Modal show="true" onHide={onCancel} size="lg">
|
||||
<Modal.Header closeButton>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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."
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user