Commit 96809f1e authored by Wietse Kuipers's avatar Wietse Kuipers
Browse files

Merge branch 'fix/welcome-screen-events' into 'master'

Fixed which events are loaded on the welcome screen.

See merge request !39
parents 84bbf99b faf0c845
......@@ -32,12 +32,13 @@ const eventListToSections = (eventList) => {
eventIndex += 1;
const list = [];
let next = first;
while (Moment(first.start).isSame(next.start) && eventIndex < eventList.length) {
while (Moment(first.start).isSame(next.start, 'day') && eventIndex < eventList.length) {
list.push(next);
next = eventList[eventIndex];
eventIndex += 1;
}
eventLists.push(list);
eventIndex -= 1;
}
return eventLists.map(list => ({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment