diff --git a/packages/component-faraday-selectors/src/index.js b/packages/component-faraday-selectors/src/index.js index d7628c87e4b73972124398700cb449772937f0f1..728b2e28a08eb1572980a1879a27e4a6e5eb98f5 100644 --- a/packages/component-faraday-selectors/src/index.js +++ b/packages/component-faraday-selectors/src/index.js @@ -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) ) }