forked from p34709852/monkey
Fixed events length check
This commit is contained in:
parent
51117edbea
commit
e520df4c34
|
@ -33,7 +33,7 @@ export default class EventsButton extends Component {
|
|||
|
||||
createEventsAmountBadge() {
|
||||
let eventsAmountBadge;
|
||||
if (this.props.events.length > 10) {
|
||||
if (this.props.events.length > 9) {
|
||||
eventsAmountBadge = <Badge>9+</Badge>;
|
||||
} else {
|
||||
eventsAmountBadge = <Badge>{this.props.events.length}</Badge>;
|
||||
|
|
Loading…
Reference in New Issue