Updated on 2026-08-14

This commit is contained in:
Tangem 2024-12-09 15:42:32 +05:00
parent abd131fa7c
commit f532fe1ea1
9 changed files with 122 additions and 90 deletions

View file

@ -343,9 +343,7 @@ internal class DefaultOnrampRepository(
override suspend fun getAvailablePaymentMethods(): Set<OnrampPaymentMethod> {
val quotes = requireNotNull(quotesStore.getSyncOrNull(QUOTES_KEY)) { "Quotes must not be null" }
return quotes
.filterIsInstance<OnrampQuote.Data>()
.mapTo(hashSetOf(), OnrampQuote.Data::paymentMethod)
return quotes.mapTo(hashSetOf(), OnrampQuote::paymentMethod)
}
override suspend fun saveSelectedPaymentMethod(paymentMethod: OnrampPaymentMethod) {