Updated on 2026-08-14

This commit is contained in:
Tangem 2024-12-17 11:10:17 +05:00
parent c48ddbff25
commit cf53970ba8
12 changed files with 54 additions and 29 deletions

View file

@ -465,7 +465,7 @@ internal class DefaultOnrampRepository(
) = if (error is ApiResponseError.HttpException) {
val onrampError = onrampErrorConverter.convert(value = error.errorBody.orEmpty())
if (onrampError is OnrampError.AmountError) {
OnrampQuote.Error(
OnrampQuote.AmountError(
paymentMethod = paymentMethod,
provider = provider,
fromAmount = fromOnrampAmount,
@ -473,7 +473,10 @@ internal class DefaultOnrampRepository(
)
} else {
Timber.w(error, "Unable to fetch onramp quotes for ${provider.id}. $error")
null
OnrampQuote.Error(
paymentMethod = paymentMethod,
provider = provider,
)
}
} else {
Timber.w(error, "Unable to fetch onramp quotes for ${provider.id}. $error")