Skip to content

Commit 21f4053

Browse files
committed
chore: lint
1 parent 0a7085a commit 21f4053

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/to/bitkit/appwidget/config/AppWidgetConfigViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import androidx.compose.runtime.Stable
44
import androidx.lifecycle.ViewModel
55
import androidx.lifecycle.viewModelScope
66
import dagger.hilt.android.lifecycle.HiltViewModel
7+
import kotlinx.collections.immutable.persistentListOf
78
import kotlinx.coroutines.flow.MutableStateFlow
89
import kotlinx.coroutines.flow.StateFlow
910
import kotlinx.coroutines.flow.asStateFlow
@@ -48,7 +49,7 @@ class AppWidgetConfigViewModel @Inject constructor(
4849

4950
fun selectPricePair(pair: TradingPair) {
5051
_uiState.update {
51-
it.copy(pricePreferences = it.pricePreferences.copy(enabledPairs = listOf(pair)))
52+
it.copy(pricePreferences = it.pricePreferences.copy(enabledPairs = persistentListOf(pair)))
5253
}
5354
}
5455

0 commit comments

Comments
 (0)