mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Fix initial currency loading state
This commit is contained in:
parent
66f1c965d7
commit
47a8800206
@ -68,7 +68,7 @@ internal class ConverterViewModel @Inject constructor(
|
|||||||
|
|
||||||
private val _leftSideUIState = MutableStateFlow(LeftSideUIState())
|
private val _leftSideUIState = MutableStateFlow(LeftSideUIState())
|
||||||
private val _rightSideUIState = MutableStateFlow(RightSideUIState())
|
private val _rightSideUIState = MutableStateFlow(RightSideUIState())
|
||||||
private val _currenciesState = MutableStateFlow<CurrencyRateUpdateState>(CurrencyRateUpdateState.Loading)
|
private val _currenciesState = MutableStateFlow<CurrencyRateUpdateState>(CurrencyRateUpdateState.Nothing)
|
||||||
private var _loadCurrenciesJob: Job? = null
|
private var _loadCurrenciesJob: Job? = null
|
||||||
|
|
||||||
val converterUiState: StateFlow<UnitConverterUIState> = combine(
|
val converterUiState: StateFlow<UnitConverterUIState> = combine(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user