File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/ui/screens/widgets/price Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,13 +50,6 @@ class PriceViewModel @Inject constructor(
5050 initialValue = false
5151 )
5252
53- val showWidgetTitles: StateFlow <Boolean > = widgetsRepo.showWidgetTitles
54- .stateIn(
55- scope = viewModelScope,
56- started = SharingStarted .WhileSubscribed (SUBSCRIPTION_TIMEOUT ),
57- initialValue = true
58- )
59-
6053 val currentPrice: StateFlow <PriceDTO ?> = widgetsRepo.priceFlow
6154 .stateIn(
6255 scope = viewModelScope,
@@ -92,7 +85,7 @@ class PriceViewModel @Inject constructor(
9285 }
9386
9487 fun selectTradingPair (pair : TradingPair ) {
95- _customPreferences .update { it.copy(enabledPairs = listOf (pair)) }
88+ _customPreferences .update { it.copy(enabledPairs = persistentListOf (pair)) }
9689 }
9790
9891 fun resetCustomPreferences () {
You can’t perform that action at this time.
0 commit comments