Skip to content

Commit b7fdea2

Browse files
committed
Fix Sectors component
1 parent cc127af commit b7fdea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/js/components/badges/Sectors.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Sectors = ({ config, sectors }) => {
77
// sectors are the sectors configured for this badge
88
if (sectors === undefined) {
99
return <span className="badge badge-success badge-sector">all sectors</span>
10-
} else if (isEmpty(sectors)) {
10+
} else if (isEmpty(sectors) && !isNil(sectors)) {
1111
// by setting `sectors: []` the display of sectors can be omitted
1212
return null
1313
} else if (isNil(sectors)) {

0 commit comments

Comments
 (0)