diff --git a/packages/component-faraday-selectors/src/index.js b/packages/component-faraday-selectors/src/index.js index efb1995173eae206ab778015322ce05de6c1a41f..8969b158dc356e794a2ed50e061e320cb69a8a0c 100644 --- a/packages/component-faraday-selectors/src/index.js +++ b/packages/component-faraday-selectors/src/index.js @@ -61,12 +61,13 @@ export const canViewReviewersDetails = (state, collection = {}) => { return canViewReports(state, collection.id) } -const canAuthorViewEditorialCommentsStatuses = [ - 'accepted', - 'rejected', - 'revisionRequested', - 'underReview', - 'reviewCompleted', +const cannotAuthorViewEditorialCommentsStatuses = [ + 'draft', + 'technicalChecks', + 'submitted', + 'heInvited', + 'heAssigned', + 'reviewersInvited', ] export const canAuthorViewEditorialComments = ( @@ -77,7 +78,7 @@ export const canAuthorViewEditorialComments = ( const isAuthor = currentUserIsAuthor(state, fragmentId) return ( isAuthor && - canAuthorViewEditorialCommentsStatuses.includes( + !cannotAuthorViewEditorialCommentsStatuses.includes( get(collection, 'status', 'draft'), ) )