Skip to content

Commit abd9cb8

Browse files
committed
chore: lint
1 parent 21f4053 commit abd9cb8

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

app/src/main/java/to/bitkit/ui/screens/widgets/price/PriceViewModel.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)