Skip to content
Snippets Groups Projects
Commit 0beadebe authored by Iosif Boanca's avatar Iosif Boanca
Browse files

hin-904-fix split the name

parent eed35286
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!91Hin 904 fixes after merge
import React, { Fragment } from 'react'
import { get, last } from 'lodash'
import { get, last, head } from 'lodash'
import styled from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
import { Button, Spinner } from '@pubsweet/ui'
......@@ -87,9 +87,10 @@ export default compose(
const newReviewer = {
email: reviewer.email,
role: 'reviewer',
firstName: names[0],
firstName: head(names),
lastName: last(names),
}
console.log(newReviewer)
onInvite(newReviewer, modalProps)
},
}),
......
......@@ -453,7 +453,7 @@ export default compose(
setFetching(false)
hideModal()
fetchUpdatedCollection()
getPublonsReviewers('plm', setModalError) // fragment.id)
getPublonsReviewers(fragment.id)
})
.catch(err => {
setFetching(false)
......
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