From b3941462d676d192e4f79d2f5de0472bc8ce0975 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 10 Dec 2022 21:23:19 +0800 Subject: [PATCH] Facepalm moment s/created_at/createdAt --- src/pages/notifications.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index f1db5431..9f3871dd 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -165,7 +165,7 @@ export default () => { // Group notifications by today, yesterday, and older const groupedNotifications = snapStates.notifications.reduce( (acc, notification) => { - const date = new Date(notification.created_at); + const date = new Date(notification.createdAt); const today = new Date(); const yesterday = new Date(); yesterday.setDate(today.getDate() - 1);