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

fix(ReviewerEmail): Used .join after .map on authorsList

parent d8a078f8
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!208feat(ReviewerInvitation): Reviewers now invited, not accepted on major revision
...@@ -740,9 +740,9 @@ class Notification { ...@@ -740,9 +740,9 @@ class Notification {
type: 'submitted', type: 'submitted',
}) })
const authorsList = authors.map( const authorsList = authors
author => `${author.firstName} ${author.lastName}`, .map(author => `${author.firstName} ${author.lastName}`)
) .join(', ')
const authorName = `${submittingAuthor.firstName} ${ const authorName = `${submittingAuthor.firstName} ${
submittingAuthor.lastName submittingAuthor.lastName
}` }`
...@@ -790,7 +790,7 @@ class Notification { ...@@ -790,7 +790,7 @@ class Notification {
ctaText: 'MANUSCRIPT DETAILS', ctaText: 'MANUSCRIPT DETAILS',
title, title,
paragraph, paragraph,
authorsList: authorsList.join(', '), authorsList,
signatureName: handlingEditor.name, signatureName: handlingEditor.name,
unsubscribeLink: services.createUrl(this.baseUrl, unsubscribeSlug, { unsubscribeLink: services.createUrl(this.baseUrl, unsubscribeSlug, {
id: reviewer.id, id: reviewer.id,
......
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