Updated on 2026-08-14

This commit is contained in:
Tangem 2024-03-19 18:14:41 +08:00
parent 86fa98c87b
commit 5d47619e8f
2 changed files with 4 additions and 0 deletions

View file

@ -703,6 +703,7 @@ internal class StateBuilder(
return uiState.copy(
sendCardData = uiState.sendCardData.copy(
balance = cryptoCurrencyStatus.getFormattedAmount(isNeedSymbol = false),
token = cryptoCurrencyStatus,
),
)
}
@ -716,6 +717,7 @@ internal class StateBuilder(
return uiState.copy(
receiveCardData = uiState.receiveCardData.copy(
balance = cryptoCurrencyStatus.getFormattedAmount(isNeedSymbol = false),
token = cryptoCurrencyStatus,
),
)
}

View file

@ -745,6 +745,8 @@ internal class SwapViewModel @Inject constructor(
dataState = dataState.copy(toCryptoCurrency = it)
stateBuilder.updateReceiveCurrencyBalance(uiState, it)
}
startLoadingQuotesFromLastState(isSilent = true)
}
.flowOn(dispatchers.main)
.launchIn(viewModelScope)