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

hin-904-fix split the name+

parent d4599740
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!91Hin 904 fixes after merge
......@@ -14,12 +14,13 @@ const TableView = ({
isFetching,
publonsError,
}) => {
if (publonsError)
if (publonsError) {
return (
<Text align="center" error>
{publonsError}
</Text>
)
}
return reviewers.length === 0 ? (
<Text align="center">No suggestions yet.</Text>
) : (
......@@ -90,7 +91,6 @@ export default compose(
firstName: head(names),
lastName: last(names),
}
console.log(newReviewer)
onInvite(newReviewer, modalProps)
},
}),
......
......@@ -23,7 +23,7 @@ const MultiAction = ({
{subtitle && <Text secondary>{subtitle}</Text>}
{renderContent()}
{modalError && (
<Text error mt={1}>
<Text align="center" error mt={1}>
{modalError}
</Text>
)}
......
......@@ -139,10 +139,17 @@ module.exports = models => async (req, res) => {
)
}
const newUser = await userHelper.createUser({
role,
body: userData,
})
let newUser
try {
newUser = await userHelper.createUser({
role,
body: userData,
})
} catch (e) {
return res
.status(400)
.json({ error: `User already exists with email: ${userData.email}` })
}
if (collection.status === 'heAssigned')
await collectionHelper.updateStatus({ newStatus: 'reviewersInvited' })
......
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