diff --git a/src/views/ChoreEdit/ChoreEdit.jsx b/src/views/ChoreEdit/ChoreEdit.jsx
index 8dcf06b..a4f1c3a 100644
--- a/src/views/ChoreEdit/ChoreEdit.jsx
+++ b/src/views/ChoreEdit/ChoreEdit.jsx
@@ -580,7 +580,9 @@ const ChoreEdit = () => {
setAssignStrategy('no_assignee')
setAssignedTo(null)
} else if (assignees.length === 1) {
- setAssignedTo(assignees[0].userId)
+ if (!assignees.some(a => a.userId === assignedTo)) {
+ setAssignedTo(assignees[0].userId)
+ }
if (assignStrategy === 'no_assignee') {
setAssignStrategy(ASSIGN_STRATEGIES[2]) // default to least_completed
}
@@ -1014,17 +1016,12 @@ const ChoreEdit = () => {
}
disabled={assignees.length === 0}
value={assignedTo > -1 ? assignedTo : null}
+ onChange={(_, newValue) => setAssignedTo(newValue)}
>
{performers
?.filter(p => assignees.find(a => a.userId == p.userId))
.map((item, index) => (
-
))}