Skip to content

Commit

Permalink
Fixed determining events for a given day, regardless of current time (j…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Mendes authored and jquense committed Jun 9, 2018
1 parent ff29988 commit b2aab5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ class Agenda extends React.Component {
let EventComponent = components.event
let DateComponent = components.date

events = events.filter(e => inRange(e, day, day, this.props))
events = events.filter(e =>
inRange(e, dates.startOf(day, 'day'), dates.endOf(day, 'day'), this.props)
)

return events.map((event, idx) => {
const { className, style } = eventPropGetter
Expand Down

0 comments on commit b2aab5d

Please sign in to comment.