Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-28 21:35:56 +03:00
commit 0cccb75424
4 changed files with 1 additions and 33 deletions

View file

@ -788,14 +788,7 @@ internal class SwapViewModel @Inject constructor(
}
private fun getUnavailableProvidersFor(state: Map<SwapProvider, SwapState>): List<SwapProvider> {
return getAllProviders()
.mapNotNull {
if (state.containsKey(it)) {
null
} else {
it
}
}
return getAllProviders().filterNot { it in state }
}
companion object {