Fix initial currency loading state

This commit is contained in:
Sad Ellie 2023-09-15 09:52:28 +03:00
parent 66f1c965d7
commit 47a8800206

View File

@ -68,7 +68,7 @@ internal class ConverterViewModel @Inject constructor(
private val _leftSideUIState = MutableStateFlow(LeftSideUIState())
private val _rightSideUIState = MutableStateFlow(RightSideUIState())
private val _currenciesState = MutableStateFlow<CurrencyRateUpdateState>(CurrencyRateUpdateState.Loading)
private val _currenciesState = MutableStateFlow<CurrencyRateUpdateState>(CurrencyRateUpdateState.Nothing)
private var _loadCurrenciesJob: Job? = null
val converterUiState: StateFlow<UnitConverterUIState> = combine(