Refactor wrong method name
parent
c480f83f6d
commit
7689de73ac
|
@ -19,7 +19,7 @@ class TasksProvider extends ChangeNotifier {
|
|||
initTasks();
|
||||
}
|
||||
|
||||
void setTaksDone(Pages taskName) {
|
||||
void setTaskDone(Pages taskName) {
|
||||
tasks[taskName] = false;
|
||||
notifyListeners();
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class MoodForm extends StatelessWidget {
|
|||
),
|
||||
SubmitFormButton(
|
||||
submitCallback: inputModel.saveMood,
|
||||
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
|
||||
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
|
|
@ -33,7 +33,7 @@ class RelapseForm extends StatelessWidget {
|
|||
),
|
||||
SubmitFormButton(
|
||||
submitCallback: inputModel.saveRelapse,
|
||||
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
|
||||
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
|
|
@ -47,7 +47,7 @@ class SleepForm extends StatelessWidget {
|
|||
),
|
||||
SubmitFormButton(
|
||||
submitCallback: () => inputModel.saveSleep(wokeUpKey, sleptKey),
|
||||
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
|
||||
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue