diff --git a/components/pages/todos/AddChoreDialog.tsx b/components/pages/todos/AddChoreDialog.tsx
index 582b721..777c30b 100644
--- a/components/pages/todos/AddChoreDialog.tsx
+++ b/components/pages/todos/AddChoreDialog.tsx
@@ -240,8 +240,8 @@ const AddChoreDialog = (addChoreDialogProps: IAddChoreDialog) => {
if (value) {
setTodo((oldValue) => ({
...oldValue,
- date: new Date(),
repeatType: value.toString(),
+ repeatDays: []
}));
}
}}
@@ -315,20 +315,22 @@ const AddChoreDialog = (addChoreDialogProps: IAddChoreDialog) => {
setSelectedAttendees={setSelectedAssignees}
/>
-
-
- Take Turns
-
-
- setTodo((oldValue) => ({...oldValue, rotate: value}))
- }
- />
-
+ {todo.repeatType !== REPEAT_TYPE.NONE && selectedAssignees?.length > 1 &&
+
+
+ Take Turns
+
+
+ setTodo((oldValue) => ({...oldValue, rotate: value}))
+ }
+ />
+
+ }
diff --git a/hooks/firebase/useUpdateSubUser.ts b/hooks/firebase/useUpdateSubUser.ts
index 8a86aa9..6581237 100644
--- a/hooks/firebase/useUpdateSubUser.ts
+++ b/hooks/firebase/useUpdateSubUser.ts
@@ -42,8 +42,8 @@ export const useUpdateSubUser = () => {
}
},
onSuccess: () => {
- queryClient.invalidateQueries({queryKey: ["getChildrenByParentId"]})
queryClient.invalidateQueries({queryKey: ["familyMembers"]})
+ queryClient.invalidateQueries({queryKey: ["profiles"]})
}
});
}
\ No newline at end of file