mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
- Added preslected assignee to be the current user when creating todo
This commit is contained in:
@ -51,7 +51,7 @@ const AddChoreDialog = (addChoreDialogProps: IAddChoreDialog) => {
|
||||
addChoreDialogProps.selectedTodo ?? defaultTodo
|
||||
);
|
||||
const [selectedAssignees, setSelectedAssignees] = useState<string[]>(
|
||||
addChoreDialogProps?.selectedTodo?.assignees ?? []
|
||||
addChoreDialogProps?.selectedTodo?.assignees ?? [user?.uid]
|
||||
);
|
||||
const {width} = Dimensions.get("screen");
|
||||
const [points, setPoints] = useState<number>(todo.points);
|
||||
|
||||
Reference in New Issue
Block a user