diff --git a/web/client/components/security/UserMenu.jsx b/web/client/components/security/UserMenu.jsx index a043217488..131eb2381d 100644 --- a/web/client/components/security/UserMenu.jsx +++ b/web/client/components/security/UserMenu.jsx @@ -64,25 +64,21 @@ const UserMenu = React.createClass({ }, renderLoggedTools() { let DropDown = this.props.nav ? NavDropdown : DropdownButton; - let showAccountInfoItem = null; + let itemArray = []; if (this.props.showAccountInfo) { - showAccountInfoItem = ; + itemArray.push( ); } - let passwordChangeItem = null; if (this.props.showPasswordChange) { - passwordChangeItem = ; + itemArray.push( ); } - let logoutItem = null; if (this.props.showLogout) { - logoutItem = ; + itemArray.push(); + itemArray.push( ); } return ( {this.props.user.name} - {showAccountInfoItem} - {passwordChangeItem} - - {logoutItem} + {itemArray} ); }, renderButtonText() {