From c0e05f3abd1a9b2ec95607cfae37c9264614a3c1 Mon Sep 17 00:00:00 2001 From: erinz Date: Tue, 5 Sep 2023 14:45:12 +0000 Subject: [PATCH] update date/time string to make it human readable --- src/pages/changeLog/ChangeLog.jsx | 2 +- src/pages/match/MatchSighting.jsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/changeLog/ChangeLog.jsx b/src/pages/changeLog/ChangeLog.jsx index ba4e4951..a4083cb4 100644 --- a/src/pages/changeLog/ChangeLog.jsx +++ b/src/pages/changeLog/ChangeLog.jsx @@ -77,7 +77,7 @@ export default function ChangeLog() { return data?.map((row) => { return { id: row.guid, - time: row.created, + time: new Date(row.created).toLocaleString(), message: `MODULE NAME: ${row.module_name}, ITEM GUID: ${row.item_guid}, AUDIT TYPE: ${row.audit_type}, DETAILS: ${row.message}`, } })?.sort((a, b) => new Date(b.time) - new Date(a.time)); diff --git a/src/pages/match/MatchSighting.jsx b/src/pages/match/MatchSighting.jsx index 5c1987a6..63a19a2d 100644 --- a/src/pages/match/MatchSighting.jsx +++ b/src/pages/match/MatchSighting.jsx @@ -135,7 +135,6 @@ export default function MatchSighting() { ['algorithms', 'hotspotter_nosv', 'scores_by_individual'], [] ); const annotation = scoresByIndividual.find((score) => score.guid === selectedMatchCandidateGuid); const heatmapUrl = annotation?.heatmap_src; - console.log(heatmapUrl); setHeatMapUrl(heatmapUrl); const checkHeatMap = async () => { try {