From 13b23d71e86cfdaadc54f80b5432784f8076c31b Mon Sep 17 00:00:00 2001
From: Mihail Hagiu <mihail.hagiu@thinslices.com>
Date: Mon, 22 Oct 2018 13:50:27 +0300
Subject: [PATCH] fix(ReviewerCanSeeEditorialComments): Removed lodash function

---
 packages/component-faraday-selectors/src/index.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/component-faraday-selectors/src/index.js b/packages/component-faraday-selectors/src/index.js
index 0b5a4b1ce..befba20e1 100644
--- a/packages/component-faraday-selectors/src/index.js
+++ b/packages/component-faraday-selectors/src/index.js
@@ -1,4 +1,4 @@
-import { get, has, last, chain, isEmpty } from 'lodash'
+import { get, has, last, chain } from 'lodash'
 import { selectCurrentUser } from 'xpub-selectors'
 
 export const isHEToManuscript = (state, collectionId) => {
@@ -118,8 +118,8 @@ export const canReviewerViewEditorialComments = (
   fragment = {},
 ) => {
   const isReviewer = currentUserIsReviewer(state, fragment.id)
-  const hasRevision = !isEmpty(get(fragment, 'revision', {}))
-  const hasRecommendation = !isEmpty(get(fragment, 'recommendations', []))
+  const hasRevision = get(fragment, 'revision', false)
+  const hasRecommendation = get(fragment, 'recommendations', false)
   const status = get(collection, 'status', 'draft')
   return (
     isReviewer &&
-- 
GitLab