diff --git a/lib/features/water_monitor/water_monitor_view_model.dart b/lib/features/water_monitor/water_monitor_view_model.dart index 2e3dbc3..787dc05 100644 --- a/lib/features/water_monitor/water_monitor_view_model.dart +++ b/lib/features/water_monitor/water_monitor_view_model.dart @@ -641,7 +641,6 @@ class WaterMonitorViewModel extends ChangeNotifier { (apiModel) async { // Update local data with response _userDetailData = apiModel.data; - // Fetch daily progress to get the updated goal and consumed data from API await fetchUserProgressForMonitoring(); diff --git a/lib/presentation/water_monitor/water_monitor_settings_screen.dart b/lib/presentation/water_monitor/water_monitor_settings_screen.dart index ca42b26..4e89d71 100644 --- a/lib/presentation/water_monitor/water_monitor_settings_screen.dart +++ b/lib/presentation/water_monitor/water_monitor_settings_screen.dart @@ -336,9 +336,7 @@ class _WaterMonitorSettingsScreenState extends State content: Text(message), duration: const Duration(seconds: 3), behavior: SnackBarBehavior.floating, - backgroundColor: message.contains('successfully') - ? Colors.green - : AppColors.errorColor, + backgroundColor: message.contains('successfully') ? Colors.green : AppColors.errorColor, ), ); }