From 47a88002060a0988c537bfe6180e609cee1570e5 Mon Sep 17 00:00:00 2001 From: Sad Ellie Date: Fri, 15 Sep 2023 09:52:28 +0300 Subject: [PATCH] Fix initial currency loading state --- .../com/sadellie/unitto/feature/converter/ConverterViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature/converter/src/main/java/com/sadellie/unitto/feature/converter/ConverterViewModel.kt b/feature/converter/src/main/java/com/sadellie/unitto/feature/converter/ConverterViewModel.kt index be2f1579..558ba098 100644 --- a/feature/converter/src/main/java/com/sadellie/unitto/feature/converter/ConverterViewModel.kt +++ b/feature/converter/src/main/java/com/sadellie/unitto/feature/converter/ConverterViewModel.kt @@ -68,7 +68,7 @@ internal class ConverterViewModel @Inject constructor( private val _leftSideUIState = MutableStateFlow(LeftSideUIState()) private val _rightSideUIState = MutableStateFlow(RightSideUIState()) - private val _currenciesState = MutableStateFlow(CurrencyRateUpdateState.Loading) + private val _currenciesState = MutableStateFlow(CurrencyRateUpdateState.Nothing) private var _loadCurrenciesJob: Job? = null val converterUiState: StateFlow = combine(