Facepalm moment
s/created_at/createdAt
This commit is contained in:
parent
d884cddf16
commit
b3941462d6
|
@ -165,7 +165,7 @@ export default () => {
|
||||||
// Group notifications by today, yesterday, and older
|
// Group notifications by today, yesterday, and older
|
||||||
const groupedNotifications = snapStates.notifications.reduce(
|
const groupedNotifications = snapStates.notifications.reduce(
|
||||||
(acc, notification) => {
|
(acc, notification) => {
|
||||||
const date = new Date(notification.created_at);
|
const date = new Date(notification.createdAt);
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const yesterday = new Date();
|
const yesterday = new Date();
|
||||||
yesterday.setDate(today.getDate() - 1);
|
yesterday.setDate(today.getDate() - 1);
|
||||||
|
|
Loading…
Reference in a new issue