Fixed events length check

This commit is contained in:
Shay Nehmad 2019-09-05 21:40:36 +03:00
parent 51117edbea
commit e520df4c34
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export default class EventsButton extends Component {
createEventsAmountBadge() { createEventsAmountBadge() {
let eventsAmountBadge; let eventsAmountBadge;
if (this.props.events.length > 10) { if (this.props.events.length > 9) {
eventsAmountBadge = <Badge>9+</Badge>; eventsAmountBadge = <Badge>9+</Badge>;
} else { } else {
eventsAmountBadge = <Badge>{this.props.events.length}</Badge>; eventsAmountBadge = <Badge>{this.props.events.length}</Badge>;