From 350ea3f9e74f25bed15fa04382989e32777ed2bc Mon Sep 17 00:00:00 2001 From: nextwo <1234> Date: Sun, 3 Sep 2023 16:21:14 +0300 Subject: [PATCH] fix bugs --- lib/views/pages/user/requests/report/edit_service_report.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/pages/user/requests/report/edit_service_report.dart b/lib/views/pages/user/requests/report/edit_service_report.dart index 6aa64bdf..a43cc433 100644 --- a/lib/views/pages/user/requests/report/edit_service_report.dart +++ b/lib/views/pages/user/requests/report/edit_service_report.dart @@ -791,9 +791,9 @@ class _EditServiceReportState extends State with TickerProvid textInputType: TextInputType.number, onSaved: (value) { if (value != null && value.isEmpty) { - _serviceReport.travelingExpense = int.tryParse(_serviceReport?.travelingExpense?.toString() ?? "") ?? 0; + _serviceReport.travelingExpense = num.tryParse(_serviceReport?.travelingExpense?.toString() ?? "") ?? 0; } else - _serviceReport.travelingExpense = int.tryParse(value) ?? 0; + _serviceReport.travelingExpense = num.tryParse(value) ?? 0; }, ),