From 5666c4ac903095ebee3671f57ea2aacd5982e263 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Tue, 25 Apr 2017 11:57:36 -0600 Subject: [PATCH] condense some var definitions --- client/coral-admin/src/components/ActionButton.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/coral-admin/src/components/ActionButton.js b/client/coral-admin/src/components/ActionButton.js index f962e768e..9365a76b6 100644 --- a/client/coral-admin/src/components/ActionButton.js +++ b/client/coral-admin/src/components/ActionButton.js @@ -5,10 +5,7 @@ import {menuActionsMap} from '../containers/ModerationQueue/helpers/moderationQu const ActionButton = ({type = '', status, ...props}) => { const typeName = type.toLowerCase(); - let active = false; - if ((type === 'REJECT' && status === 'REJECTED') || (type === 'APPROVE' && status === 'APPROVED')) { - active = true; - } + const active = ((type === 'REJECT' && status === 'REJECTED') || (type === 'APPROVE' && status === 'APPROVED')); return (