more
This commit is contained in:
@@ -276,10 +276,10 @@ export const DocCard = (props) => {
|
|||||||
createdAt,
|
createdAt,
|
||||||
} = props;
|
} = props;
|
||||||
const now = new Date().getTime();
|
const now = new Date().getTime();
|
||||||
const temp = createdAt.toDate();
|
const uploadedAt = createdAt.toDate();
|
||||||
const diff = Math.round((now - temp) / 60 / 1000);
|
const diff = Math.round((now - uploadedAt) / 60 / 1000);
|
||||||
const isReportable = diff > 15;
|
const isReportable = diff > 15;
|
||||||
console.log("isRpeortable", isReportable);
|
console.log("diff", diff);
|
||||||
const report = (documentId, docType) => {
|
const report = (documentId, docType) => {
|
||||||
console.log("report documentId, docType", documentId, docType);
|
console.log("report documentId, docType", documentId, docType);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user