Facepalm moment

s/created_at/createdAt
This commit is contained in:
Lim Chee Aun 2022-12-10 21:23:19 +08:00
parent d884cddf16
commit b3941462d6

View file

@ -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);