Skip to content

Commit dc6a967

Browse files
committed
feat: reverse sorting order of contacts by access grant timestamp
1 parent 4d0825d commit dc6a967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/contact/contactList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const fetchContacts = async (userAddress: string) => {
5656

5757
return [...myEmailContacts, ...myTelegramContacts].sort(
5858
(a, b) =>
59-
new Date(a.accessGrantTimestamp).getTime() -
60-
new Date(b.accessGrantTimestamp).getTime()
59+
new Date(b.accessGrantTimestamp).getTime() -
60+
new Date(a.accessGrantTimestamp).getTime()
6161
);
6262
};
6363

0 commit comments

Comments
 (0)