Updated on 2026-08-14
This commit is contained in:
parent
86a853c15f
commit
4ff11f2040
1 changed files with 9 additions and 2 deletions
|
|
@ -79,10 +79,17 @@ internal class OnrampSuccessComponentModel @Inject constructor(
|
|||
}
|
||||
|
||||
private suspend fun loadTransactionStatus(transaction: OnrampTransaction) {
|
||||
val cryptoCurrency = getCryptoCurrencyUseCase(
|
||||
val multiCryptoCurrency = getCryptoCurrencyUseCase(
|
||||
transaction.userWalletId,
|
||||
transaction.toCurrencyId,
|
||||
).getOrElse { error("Crypto currency not found") }
|
||||
).getOrNull()
|
||||
|
||||
val cryptoCurrency = multiCryptoCurrency
|
||||
?: getCryptoCurrencyUseCase.invoke(transaction.userWalletId).getOrElse {
|
||||
Timber.e("Crypto currency not found")
|
||||
showErrorAlert(OnrampError.DomainError(null))
|
||||
return
|
||||
}
|
||||
|
||||
getOnrampStatusUseCase(txId = transaction.txId)
|
||||
.fold(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue