Skip to content
Snippets Groups Projects
Commit f7bb0595 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix(authors): change key from email to userId when current user do not receive author email

parent 5507b2ff
No related branches found
No related tags found
1 merge request!8Sprint #10
...@@ -11,13 +11,13 @@ const TR = ({ ...@@ -11,13 +11,13 @@ const TR = ({
index, index,
}) => ( }) => (
<Row> <Row>
<td> {index + 1}</td> <td width="20">{index + 1}</td>
<td> <td>
<AuthorName>{name}</AuthorName> <AuthorName>{name}</AuthorName>
{isSubmitting && <AuthorStatus>SA</AuthorStatus>} {isSubmitting && <AuthorStatus>SA</AuthorStatus>}
{isCorresponding && !isSubmitting && <AuthorStatus>CA</AuthorStatus>} {isCorresponding && !isSubmitting && <AuthorStatus>CA</AuthorStatus>}
</td> </td>
<td>{email}</td> <td>{email || 'N/A'}</td>
<td>{affiliation}</td> <td>{affiliation}</td>
</Row> </Row>
) )
...@@ -35,6 +35,7 @@ const Authors = ({ authors }) => ( ...@@ -35,6 +35,7 @@ const Authors = ({ authors }) => (
{authors.map( {authors.map(
( (
{ {
userId,
firstName = '', firstName = '',
lastName = '', lastName = '',
email = '', email = '',
...@@ -50,7 +51,7 @@ const Authors = ({ authors }) => ( ...@@ -50,7 +51,7 @@ const Authors = ({ authors }) => (
index={index} index={index}
isCorresponding={isCorresponding} isCorresponding={isCorresponding}
isSubmitting={isSubmitting} isSubmitting={isSubmitting}
key={email} key={`${userId}`}
name={`${firstName} ${lastName}`} name={`${firstName} ${lastName}`}
/> />
), ),
......
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