Skip to content

Commit

Permalink
Show no dropdown if shop has only one group
Browse files Browse the repository at this point in the history
  • Loading branch information
impactmass committed Jul 28, 2017
1 parent aa656a5 commit 9b6abdd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ const GroupsTableCell = ({ account, columnName, group, groups, handleRemoveUserF
}

if (columnName === "dropdown") {
if (groups.length === 1) {
return (
<p>{_.startCase(groups[0].name)}</p>
);
}
const dropDownButton = (
<div className="group-dropdown">
<Components.Button label={group.name && _.startCase(group.name)}>
Expand Down

0 comments on commit 9b6abdd

Please sign in to comment.