Skip to content
Snippets Groups Projects
Commit 40405ea0 authored by Anca Ursachi's avatar Anca Ursachi
Browse files

refactor(index(faraday-selectors)): Rename variable cannotHEMakeRecommendationToPublishStatuses

parent 5cb3913c
No related branches found
No related tags found
3 merge requests!162Sprint 23 Features,!161Deploy S23 features and fixes,!155Hin 1130
......@@ -238,12 +238,12 @@ const collectionReviewerReports = state =>
.find(r => r.recommendationType === 'review' && r.submittedOn)
.value()
const cannotHEMakeRecommendationToPublish = ['heInvited']
const cannotHEMakeRecommendationToPublishStatuses = ['heInvited']
export const canHEMakeRecommendationToPublish = (state, collection = {}) => {
const status = get(collection, 'status', 'draft')
return (
!!collectionReviewerReports(state) ||
cannotHEMakeRecommendationToPublish.includes(status)
cannotHEMakeRecommendationToPublishStatuses.includes(status)
)
}
......
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