Skip to content
Snippets Groups Projects

Hin 1232 send correct email to new author

Merged Tania Fecheta requested to merge HIN-1232-send-correct-email-to-newAuthor into develop
All threads resolved!
12 files
+ 99
45
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -467,14 +467,23 @@ export const getInvitationsWithReviewersForFragment = (state, fragmentId) =>
export const canMakeHERecommendation = (state, { collection, statuses }) => {
const validHE = isHEToManuscript(state, get(collection, 'id', ''))
if (!validHE) return false
const statusImportance = get(
statuses,
`${get(collection, 'status', 'draft')}.importance`,
1,
)
if (!(statusImportance > 1 && statusImportance < 10)) return false
const heInvitedImportance = get(statuses, `heInvited.importance`)
const pendingApprovalImportance = get(statuses, `pendingApproval.importance`)
if (
!(
statusImportance > heInvitedImportance &&
statusImportance < pendingApprovalImportance
)
) {
return false
}
return true
}