mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
correct check for empty category
This commit is contained in:
@@ -30,7 +30,7 @@ class MapEvents extends React.Component {
|
||||
return (
|
||||
<circle
|
||||
className="location-event-marker"
|
||||
r={(events) ? Math.sqrt(16 * events.length) + 3 : 0}
|
||||
r={(events.length > 0) ? Math.sqrt(16 * events.length) + 3 : 0}
|
||||
style={{ fill: this.props.getCategoryColor(category), fillOpacity: 0.8 }}
|
||||
onClick={() => this.props.onSelect(events)}
|
||||
>
|
||||
@@ -63,4 +63,4 @@ class MapEvents extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default MapEvents;
|
||||
export default MapEvents;
|
||||
|
||||
Reference in New Issue
Block a user