diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/viewmodels/LaundryViewModel.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/viewmodels/LaundryViewModel.kt index d132fe59..11395453 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/viewmodels/LaundryViewModel.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/viewmodels/LaundryViewModel.kt @@ -108,10 +108,10 @@ class LaundryViewModel : ViewModel() { addUsage.join() if (addUsageSuccess && !addRoomSuccess) { - rooms.removeLast() + usages.removeLast() } if (!addUsageSuccess && addRoomSuccess) { - usages.removeLast() + rooms.removeLast() } } replaceFavorites(rooms, usages)