From 29bdbd5b9500a6e73967a263ca52e5776c4e8e4d Mon Sep 17 00:00:00 2001 From: Brian Clifton Date: Thu, 5 Oct 2017 10:26:21 -0700 Subject: [PATCH] Falsey check for NotifyItem button Fixes https://github.com/brave/browser-laptop/issues/11282 Auditors: @cezaraugusto, @kjozwiak Test Plan: See https://github.com/brave/browser-laptop/issues/11282 (I ran these steps and verified the fix) --- .../components/main/notificationItem.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/renderer/components/main/notificationItem.js b/app/renderer/components/main/notificationItem.js index 9ae45485d46..4d91cbe7db2 100644 --- a/app/renderer/components/main/notificationItem.js +++ b/app/renderer/components/main/notificationItem.js @@ -120,14 +120,15 @@ class NotificationItem extends React.Component { : null } { - this.props.buttons.map((button, i) => - - ) + this.props.buttons + ? this.props.buttons.map((button, i) => + ) + : null }