fix: Update validation for completed work to allow zero as a valid input

This commit is contained in:
Vaibhav Surve 2025-06-04 11:18:07 +05:30
parent 4862e53967
commit d7680df3a9

View File

@ -111,7 +111,7 @@ class ReportTaskController extends MyController {
} }
final completedWorkInt = int.tryParse(completedWork); final completedWorkInt = int.tryParse(completedWork);
if (completedWorkInt == null || completedWorkInt <= 0) { if (completedWorkInt == null || completedWorkInt < 0) {
showAppSnackbar( showAppSnackbar(
title: "Error", title: "Error",
message: "Completed work must be a positive integer.", message: "Completed work must be a positive integer.",