Skip to content

Commit

Permalink
Fix logic in LaundryViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
meiron03 committed Aug 31, 2024
1 parent 654fce2 commit 20d150c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20d150c

Please sign in to comment.