Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Falsey check for NotifyItem button
Browse files Browse the repository at this point in the history
Fixes #11282

Auditors: @cezaraugusto, @kjozwiak

Test Plan:
See #11282
(I ran these steps and verified the fix)
  • Loading branch information
bsclifton committed Oct 5, 2017
1 parent d03bdd2 commit 29bdbd5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/renderer/components/main/notificationItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,15 @@ class NotificationItem extends React.Component {
: null
}
{
this.props.buttons.map((button, i) =>
<BrowserButton groupedItem secondaryColor notificationItem
iconClass={button.get('className')}
testId='notificationButton'
label={button.get('text')}
onClick={this.clickHandler.bind(this, i)}
/>
)
this.props.buttons
? this.props.buttons.map((button, i) =>
<BrowserButton groupedItem secondaryColor notificationItem
iconClass={button.get('className')}
testId='notificationButton'
label={button.get('text')}
onClick={this.clickHandler.bind(this, i)}
/>)
: null
}
</span>
</div>
Expand Down

0 comments on commit 29bdbd5

Please sign in to comment.