Updated on 2026-08-14
This commit is contained in:
parent
8b50cdc381
commit
df9a00188b
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ internal class SwapViewModel @Inject constructor(
|
|||
val stateSuccess = state.getLastLoadedSuccessStates()
|
||||
return if (stateSuccess.isNotEmpty()) {
|
||||
val currentSelected = dataState.selectedProvider
|
||||
if (currentSelected != null && state.keys.contains(currentSelected)) {
|
||||
if (currentSelected != null && stateSuccess.keys.contains(currentSelected)) {
|
||||
currentSelected
|
||||
} else {
|
||||
findBestQuoteProvider(stateSuccess) ?: stateSuccess.keys.first()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue