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

feat(publonsInvite): refactored var name and setPublons func

parent be4c5944
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!85Hin 904
......@@ -25,7 +25,7 @@ const ReviewerDetails = ({
reports,
fragment,
invitations,
publons,
publonReviewers,
isFetching,
previewFile,
downloadFile,
......@@ -94,7 +94,7 @@ const ReviewerDetails = ({
<PublonsTable
onInvite={onInvitePublonReviewer}
publonsFetching={isFetching}
reviewers={publons}
reviewers={publonReviewers}
/>
)}
{selectedTab === 2 && (
......@@ -128,12 +128,12 @@ export default compose(
withProps(
({
invitations = [],
publons = [],
publonReviewers = [],
reviewerReports = [],
currentUser,
}) => ({
token: get(currentUser, 'token', ''),
publons,
publonReviewers,
invitations: invitations.map(i => ({
...i,
review: reviewerReports.find(r => r.userId === i.userId),
......
......@@ -184,7 +184,7 @@ const ManuscriptLayout = ({
onInviteReviewer={onInviteReviewer}
onResendReviewerInvite={onResendReviewerInvite}
onRevokeReviewerInvite={onRevokeReviewerInvite}
publons={publonReviewers}
publonReviewers={publonReviewers}
reviewerReports={reviewerReports}
/>
)}
......
......@@ -213,9 +213,8 @@ export default compose(
setEiC(`${firstName} ${lastName}`)
}
},
setPublons: ({ setPub }) => publons => {
if (publons) setPub(publons)
},
setPublons: ({ setPub }) => (publonReviewers = []) =>
setPub(publonReviewers),
assignHE: ({
assignHandlingEditor,
fetchUpdatedCollection,
......
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