Skip to content

Commit

Permalink
Revert to && instead of ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jan 19, 2025
1 parent 3d58fb3 commit 136c854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/layout/masterbar/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ class MasterbarItem extends Component< MasterbarItemProps > {
>
<MenuItem
{ ...attributes }
onKeyDown={ this.props.subItems ? this.toggleMenuByKey : undefined }
onTouchEnd={ this.props.subItems ? this.toggleMenuByTouch : undefined }
onKeyDown={ this.props.subItems && this.toggleMenuByKey }
onTouchEnd={ this.props.subItems && this.toggleMenuByTouch }
>
{ this.renderChildren() }
</MenuItem>
Expand Down

0 comments on commit 136c854

Please sign in to comment.