Skip to content
Snippets Groups Projects
Commit 0bcc0598 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

fox

parent 2d2875e9
No related branches found
No related tags found
1 merge request!10Sprint #12
......@@ -169,10 +169,9 @@ const DashboardCard = ({
const isHEToManuscript = (state, collectionId) => {
const currentUserId = get(state, 'currentUser.user.id')
const collections = get(state, 'collections') || []
const collection = collections.find(c => c.id === collectionId) || {
invitations: [],
}
const userInvitation = collection.invitations.find(
const collection = collections.find(c => c.id === collectionId) || {}
const collectionInvitations = get(collection, 'invitations') || []
const userInvitation = collectionInvitations.find(
i => i.role === 'handlingEditor' && i.userId === currentUserId,
)
......
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