Skip to content
Snippets Groups Projects
Commit 13b23d71 authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

fix(ReviewerCanSeeEditorialComments): Removed lodash function

parent e7b4d874
No related branches found
No related tags found
1 merge request!100Hin 1043
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 &&
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment