Simplify expression

This commit is contained in:
Daniel Gasienica 2018-04-24 12:09:17 -04:00
parent f99e6306c3
commit 6330a8d9f3

View file

@ -39,7 +39,7 @@ export const groupMessagesByDate = (
toSection(groupedMessages.yesterday),
toSection(groupedMessages.thisWeek),
toSection(groupedMessages.thisMonth),
...yearMonthMessages.map(group => toSection(group)),
...yearMonthMessages.map(toSection),
]);
};