Updated on 2026-08-14
This commit is contained in:
commit
0cccb75424
4 changed files with 1 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue