From d7680df3a97891b3f6b392afad4c23babb269b2b Mon Sep 17 00:00:00 2001 From: Vaibhav Surve Date: Wed, 4 Jun 2025 11:18:07 +0530 Subject: [PATCH] fix: Update validation for completed work to allow zero as a valid input --- lib/controller/task_planing/report_task_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/task_planing/report_task_controller.dart b/lib/controller/task_planing/report_task_controller.dart index 6c47545..c921caa 100644 --- a/lib/controller/task_planing/report_task_controller.dart +++ b/lib/controller/task_planing/report_task_controller.dart @@ -111,7 +111,7 @@ class ReportTaskController extends MyController { } final completedWorkInt = int.tryParse(completedWork); - if (completedWorkInt == null || completedWorkInt <= 0) { + if (completedWorkInt == null || completedWorkInt < 0) { showAppSnackbar( title: "Error", message: "Completed work must be a positive integer.", -- 2.43.0