This commit is contained in:
Kenneth Jannette
2024-01-22 15:45:07 -06:00
parent f0f59a3d3f
commit 1c28d4a7eb

View File

@@ -276,10 +276,10 @@ export const DocCard = (props) => {
createdAt,
} = props;
const now = new Date().getTime();
const temp = createdAt.toDate();
const diff = Math.round((now - temp) / 60 / 1000);
const uploadedAt = createdAt.toDate();
const diff = Math.round((now - uploadedAt) / 60 / 1000);
const isReportable = diff > 15;
console.log("isRpeortable", isReportable);
console.log("diff", diff);
const report = (documentId, docType) => {
console.log("report documentId, docType", documentId, docType);
};