Fixed: Calendar defaultProps for statistics

Fixes #534
This commit is contained in:
Qstick 2018-11-10 22:08:03 -05:00
parent 002234f71b
commit ddf9e8bb01
2 changed files with 12 additions and 0 deletions

View file

@ -133,4 +133,10 @@ AgendaEvent.propTypes = {
longDateFormat: PropTypes.string.isRequired
};
AgendaEvent.defaultProps = {
statistics: {
percentOfTracks: 0
}
};
export default AgendaEvent;

View file

@ -134,4 +134,10 @@ CalendarEvent.propTypes = {
onEventModalOpenToggle: PropTypes.func.isRequired
};
CalendarEvent.defaultProps = {
statistics: {
percentOfTracks: 0
}
};
export default CalendarEvent;