Skip to content

Commit

Permalink
Fixed null check operator used on a null value
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAdiyat committed Aug 17, 2023
1 parent 21925ab commit 12f1bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/modules/home/widgets/task_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Widget _buildTaskStatus({
}) {
var createdTasksLeft = 0;
if (task != null) {
final createdTasksCurrent = Get.find<HomeController>().getDoneTodo(task!);
final createdTasksCurrent = Get.find<HomeController>().getDoneTodo(task);
final totalTodos = task.todos?.length ?? 0;
createdTasksLeft = totalTodos - createdTasksCurrent;
}
Expand Down

0 comments on commit 12f1bf2

Please sign in to comment.