more
This commit is contained in:
@@ -462,6 +462,8 @@ const DocEditPage = () => {
|
|||||||
if (!docId) {
|
if (!docId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("updaeeResponseGenerationCount past if block");
|
||||||
await updateDoc(doc(db, "documents", docId), {
|
await updateDoc(doc(db, "documents", docId), {
|
||||||
responseGenerations: increment(1),
|
responseGenerations: increment(1),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -282,6 +282,7 @@ export const DocCard = (props) => {
|
|||||||
const uploadedAt = new Date(createdAtTime * 1000);
|
const uploadedAt = new Date(createdAtTime * 1000);
|
||||||
const isReportable = Math.round((now - uploadedAt) / 60 / 1000) > 15;
|
const isReportable = Math.round((now - uploadedAt) / 60 / 1000) > 15;
|
||||||
console.log("responseGenerations", responseGenerations);
|
console.log("responseGenerations", responseGenerations);
|
||||||
|
console.log("docType", docType);
|
||||||
const disabled = docType ? false : true;
|
const disabled = docType ? false : true;
|
||||||
const tooltipText =
|
const tooltipText =
|
||||||
"Parsing is taking a bit longer than usual. This usually resolves within 15 minutes. If it does not, click “report” and support will address the issue within 24 hours.";
|
"Parsing is taking a bit longer than usual. This usually resolves within 15 minutes. If it does not, click “report” and support will address the issue within 24 hours.";
|
||||||
@@ -297,9 +298,9 @@ export const DocCard = (props) => {
|
|||||||
|
|
||||||
const isOutbound = docType === "interrogatories-out";
|
const isOutbound = docType === "interrogatories-out";
|
||||||
const buttonText =
|
const buttonText =
|
||||||
docType === "interrogatories-out"
|
docType === "interrogatories" && responseGenerations > 0
|
||||||
? "Edit Request"
|
? "Edit Request"
|
||||||
: responseGenerations > 1
|
: docType === "interrogatories-out"
|
||||||
? "Edit Response"
|
? "Edit Response"
|
||||||
: "Generate Response";
|
: "Generate Response";
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user