Skip to content

Commit

Permalink
Set loading state before calling remove stored payment method callback
Browse files Browse the repository at this point in the history
This fixes an issue where a loading spinner would show infinitely
when an error is returned in the remove stored payment method callback.

COAND-801
  • Loading branch information
OscarSpruit committed Oct 2, 2023
1 parent 82a5ec4 commit 0e3d592
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ internal class DropInActivity :
}

override fun removeStoredPaymentMethod(storedPaymentMethod: StoredPaymentMethod) {
dropInService?.requestRemoveStoredPaymentMethod(storedPaymentMethod)
setLoading(true)
dropInService?.requestRemoveStoredPaymentMethod(storedPaymentMethod)
}

private fun handleDropInServiceResult(dropInServiceResult: BaseDropInServiceResult) {
Expand Down

0 comments on commit 0e3d592

Please sign in to comment.