Fix https://github.com/donetick/donetick/issues/373 compact card not showing the right performer
This commit is contained in:
@@ -412,7 +412,7 @@ const CompactChoreCard = ({
|
||||
// Assignee (if not current user)
|
||||
if (chore.assignedTo && chore.assignedTo !== userProfile.id) {
|
||||
const assignee = performers.find(
|
||||
p => p.id === chore.assignedTo,
|
||||
p => p.userId === chore.assignedTo,
|
||||
)?.displayName
|
||||
if (assignee) parts.push(assignee)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user