Skip to content

Commit

Permalink
fix: Progress dialog is continued showing on error in attendee fragme…
Browse files Browse the repository at this point in the history
…nt (#1946)
  • Loading branch information
liveHarshit committed Jun 15, 2019
1 parent d94b574 commit 1210b97
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class AttendeeViewModel(
}
Timber.d("Success! %s", attendeesForOrder.toList().toString())
}, {
mutableProgress.value = false
if (createAttendeeIterations + 1 == totalAttendee)
if (it.message.equals(HttpErrors.CONFLICT)) {
mutableTicketSoldOut.value = true
Expand Down Expand Up @@ -281,6 +282,7 @@ class AttendeeViewModel(
}, {
mutableMessage.value = resource.getString(R.string.order_fail_message)
Timber.d(it, "Failed creating Order")
mutableProgress.value = false
deleteAttendees(order.attendees)
})
}
Expand Down

0 comments on commit 1210b97

Please sign in to comment.