diff --git a/packages/components-faraday/src/components/Dashboard/DashboardCard.js b/packages/components-faraday/src/components/Dashboard/DashboardCard.js index a47c5ee88f996f8589cbb57a9eea808c6cfbfe71..cd03a3fc046952d077cc25bbe8744b65acd53f7b 100644 --- a/packages/components-faraday/src/components/Dashboard/DashboardCard.js +++ b/packages/components-faraday/src/components/Dashboard/DashboardCard.js @@ -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, )