Skip to content

Commit

Permalink
parse date
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-nhs committed Apr 23, 2024
1 parent 19e3975 commit eda9dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gsul/src/getStatusUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const buildResult = (
const uniqueItems: Array<itemType> = Object.values(
items.reduce(function (r, e) {
if (!r[e.itemId]) r[e.itemId] = e
else if (e.lastUpdateDateTime > r[e.itemId].lastUpdateDateTime) r[e.itemId] = e
else if (Date.parse(e.lastUpdateDateTime) > Date.parse(r[e.itemId].lastUpdateDateTime)) r[e.itemId] = e
return r
}, {})
)
Expand Down

0 comments on commit eda9dea

Please sign in to comment.