Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
sorted exposure history (#1555)
Browse files Browse the repository at this point in the history
Sorted exposure history in descending order
  • Loading branch information
omartehsin1 authored May 3, 2021
1 parent b648167 commit ab242fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screens/exposureHistory/views/ExposureList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const ExposureList = ({exposureHistoryData}: {exposureHistoryData: Combin
({id, exposureType}) => navigation.navigate('RecentExposureScreen', {id, exposureType}),
[navigation],
);
exposureHistoryData.sort(function (first, second) {
return second.timestamp - first.timestamp;
});

return (
<>
Expand Down

0 comments on commit ab242fb

Please sign in to comment.