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'>
|
<Typography level='title-md'>
|
||||||
{getName(chore.name)}
|
{getName(chore.name)}
|
||||||
</Typography>
|
</Typography>
|
||||||
{chore.assignedTo && chore.assignedTo !== userProfile?.id && (
|
{chore.assignedTo && (
|
||||||
<Box display='flex' alignItems='center' gap={0.5}>
|
<Box display='flex' alignItems='center' gap={0.5}>
|
||||||
<Chip
|
<Chip
|
||||||
variant='outlined'
|
variant='outlined'
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ const CompactChoreCard = ({
|
|||||||
// Frequency
|
// Frequency
|
||||||
parts.push(getRecurrentChipText(chore))
|
parts.push(getRecurrentChipText(chore))
|
||||||
|
|
||||||
// Assignee (if not current user)
|
// Assignee
|
||||||
if (chore.assignedTo && chore.assignedTo !== userProfile.id) {
|
if (chore.assignedTo) {
|
||||||
const assignee = performers.find(
|
const assignee = performers.find(
|
||||||
p => p.userId === chore.assignedTo,
|
p => p.userId === chore.assignedTo,
|
||||||
)?.displayName
|
)?.displayName
|
||||||
|
|||||||
Reference in New Issue
Block a user