This commit is contained in:
Kenneth Jannette
2024-03-07 15:47:25 -06:00
parent 99735fe71b
commit 4fc6971efd
2 changed files with 5 additions and 2 deletions

View File

@@ -462,6 +462,8 @@ const DocEditPage = () => {
if (!docId) {
return;
}
console.log("updaeeResponseGenerationCount past if block");
await updateDoc(doc(db, "documents", docId), {
responseGenerations: increment(1),
});

View File

@@ -282,6 +282,7 @@ export const DocCard = (props) => {
const uploadedAt = new Date(createdAtTime * 1000);
const isReportable = Math.round((now - uploadedAt) / 60 / 1000) > 15;
console.log("responseGenerations", responseGenerations);
console.log("docType", docType);
const disabled = docType ? false : true;
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.";
@@ -297,9 +298,9 @@ export const DocCard = (props) => {
const isOutbound = docType === "interrogatories-out";
const buttonText =
docType === "interrogatories-out"
docType === "interrogatories" && responseGenerations > 0
? "Edit Request"
: responseGenerations > 1
: docType === "interrogatories-out"
? "Edit Response"
: "Generate Response";
return (