more
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user