From f9afbb724a5108d5006664a84800221e4ab15807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sim=C3=A3o?= Date: Tue, 6 Jun 2023 12:12:45 +0100 Subject: [PATCH] fix: sort notifications (#1270) --- src/components/NotificationsPopover/NotificationsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NotificationsPopover/NotificationsList.tsx b/src/components/NotificationsPopover/NotificationsList.tsx index 97d51a2c9a..a84dc4091e 100644 --- a/src/components/NotificationsPopover/NotificationsList.tsx +++ b/src/components/NotificationsPopover/NotificationsList.tsx @@ -20,7 +20,7 @@ const NotificationsList = ({ items }: NotificationsListProps): JSX.Element => { ); } - const latestTransactions = items.slice(-5); + const latestTransactions = items.slice(-5).sort((a, b) => b.date.getTime() - a.date.getTime()); return (