Merge pull request #51 from hoborm/bugfix/chorecard-assigned-self
Show chore assigned person even if it's our own.
This commit is contained in:
@@ -211,7 +211,7 @@ const ChoreCard = ({
|
||||
<Typography level='title-md'>
|
||||
{getName(chore.name)}
|
||||
</Typography>
|
||||
{chore.assignedTo && chore.assignedTo !== userProfile?.id && (
|
||||
{chore.assignedTo && (
|
||||
<Box display='flex' alignItems='center' gap={0.5}>
|
||||
<Chip
|
||||
variant='outlined'
|
||||
|
||||
@@ -81,8 +81,8 @@ const CompactChoreCard = ({
|
||||
// Frequency
|
||||
parts.push(getRecurrentChipText(chore))
|
||||
|
||||
// Assignee (if not current user)
|
||||
if (chore.assignedTo && chore.assignedTo !== userProfile.id) {
|
||||
// Assignee
|
||||
if (chore.assignedTo) {
|
||||
const assignee = performers.find(
|
||||
p => p.userId === chore.assignedTo,
|
||||
)?.displayName
|
||||
|
||||
Reference in New Issue
Block a user