Merge pull request 'fix: Update validation for completed work to allow zero as a valid input' (#44) from Vaibhav_Bug-#451 into main
Reviewed-on: #44
This commit is contained in:
commit
a0761d255f
@ -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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user