Skip to content

Commit

Permalink
Merge pull request #624 from mysteriumnetwork/bugfix/Missing-ID
Browse files Browse the repository at this point in the history
Missing-ID
  • Loading branch information
ArtemHryhorovGeniusee authored Jun 23, 2022
2 parents a0a9753 + f07ef56 commit ecd81f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ class PaymentSummaryActivity : BaseActivity() {
paymentStatusViewModel.getPayment(price).observe(this) {
it.onSuccess { order ->
topUpPriceCardItem = topUpPriceCardItem?.copy(id = order.id)
if (topUpPriceCardItem?.id?.isEmpty() == true) {
showNoAmountPopUp { getPayment(price) }
return@onSuccess
}
inflateOrderData(order)
}
it.onFailure { error ->
Expand All @@ -111,6 +115,8 @@ class PaymentSummaryActivity : BaseActivity() {
}

private fun launchPlayBillingPayment() {
if (topUpPriceCardItem?.id?.isEmpty() == true) return

topUpPriceCardItem?.let {
paymentViewModel.billingDataSource.launchBillingFlow(
this@PaymentSummaryActivity,
Expand Down
2 changes: 1 addition & 1 deletion fastlane/android_version_code
Original file line number Diff line number Diff line change
@@ -1 +1 @@
107147
107148

0 comments on commit ecd81f7

Please sign in to comment.