diff --git a/app/src/main/java/com/example/citrusclient/viewmodels/ScheduleViewModel.java b/app/src/main/java/com/example/citrusclient/viewmodels/ScheduleViewModel.java index 7c49525..700826f 100644 --- a/app/src/main/java/com/example/citrusclient/viewmodels/ScheduleViewModel.java +++ b/app/src/main/java/com/example/citrusclient/viewmodels/ScheduleViewModel.java @@ -182,7 +182,8 @@ if(response.isSuccessful()){ schedulesByMonth.setValue(response.body()); } else { - errorLiveData.setValue(response.message()); + schedulesByMonth.setValue(new HashMap<>()); + errorLiveData.setValue(response.message()); } } @Override