Refactor wrong method name

main
Kai Mannweiler 2023-03-02 20:33:44 +01:00
parent c480f83f6d
commit 7689de73ac
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class TasksProvider extends ChangeNotifier {
initTasks();
}
void setTaksDone(Pages taskName) {
void setTaskDone(Pages taskName) {
tasks[taskName] = false;
notifyListeners();
}

View File

@ -33,7 +33,7 @@ class MoodForm extends StatelessWidget {
),
SubmitFormButton(
submitCallback: inputModel.saveMood,
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
)
],
);

View File

@ -33,7 +33,7 @@ class RelapseForm extends StatelessWidget {
),
SubmitFormButton(
submitCallback: inputModel.saveRelapse,
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
)
],
);

View File

@ -47,7 +47,7 @@ class SleepForm extends StatelessWidget {
),
SubmitFormButton(
submitCallback: () => inputModel.saveSleep(wokeUpKey, sleptKey),
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
)
],
);