This commit is contained in:
Kenneth Jannette
2024-03-10 19:19:23 -05:00
parent c73ebfd92c
commit 486ac83716

View File

@@ -40,7 +40,7 @@ const CaseDetailsPage = () => {
? process.env.REACT_APP_API_DEV ? process.env.REACT_APP_API_DEV
: process.env.REACT_APP_API_PROD; : process.env.REACT_APP_API_PROD;
// NEVER CHANGE THESE ARGS // isComplaint = true - NEVER CHANGE THESE ARGS
async function generateOutgoingDiscReq(docId, clientPosition) { async function generateOutgoingDiscReq(docId, clientPosition) {
try { try {
const response = await fetch( const response = await fetch(
@@ -55,7 +55,7 @@ const CaseDetailsPage = () => {
console.log("generate out error", err); console.log("generate out error", err);
} }
} }
// NEVER CHANGE THESE ARGS // isComplaint = false - NEVER CHANGE THESE ARGS
async function generateRespIncomingDiscReq(docId, clientPosition) { async function generateRespIncomingDiscReq(docId, clientPosition) {
try { try {
const response = await fetch( const response = await fetch(
@@ -74,11 +74,7 @@ const CaseDetailsPage = () => {
async function handleSuccess(docId, docType, radioValue) { async function handleSuccess(docId, docType, radioValue) {
setShowUploadModal(false); setShowUploadModal(false);
const clientPosition = subCase.clientPosition; const clientPosition = subCase.clientPosition;
console.log( console.log("handle success in details page ~~~~~~~~~> docType", docType);
"handle success in main page ~~~~~~~~~> radioValue, docType",
radioValue,
docType
);
if (docType === "complaint") { if (docType === "complaint") {
const isComplaint = true; const isComplaint = true;