From 297d30f21f3027e9e0cc0e44b5682b7ec518f7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 17 Sep 2015 13:52:51 +0200 Subject: [PATCH] PR Feeback: Simplify statements --- js/components/piece_list_filter_display.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/piece_list_filter_display.js b/js/components/piece_list_filter_display.js index e1c19bdd..6ca5207a 100644 --- a/js/components/piece_list_filter_display.js +++ b/js/components/piece_list_filter_display.js @@ -39,13 +39,13 @@ let PieceListFilterDisplay = React.createClass({ return { key: item.key, label: item.label, - value: filterBy[item.key] ? filterBy[item.key] : false + value: filterBy[item.key] || false }; } else { return { key: item, label: item.split('acl_')[1].replace(/_/g, ' '), - value: filterBy[item] ? filterBy[item] : false + value: filterBy[item] || false }; } })