Skip to content

Commit

Permalink
Fix: Resolved crash caused by default empty string value of selectedS…
Browse files Browse the repository at this point in the history
…ortingType
  • Loading branch information
sakethpathike committed Mar 5, 2024
1 parent 3725578 commit b1871c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class SettingsScreenVM(
val isOnLatestUpdate = mutableStateOf(false)
val didServerTimeOutErrorOccurred = mutableStateOf(false)
val savedAppCode = mutableIntStateOf(16)
val selectedSortingType = mutableStateOf("")
val selectedSortingType = mutableStateOf(SortingPreferences.NEW_TO_OLD.name)

suspend fun <T> readSettingPreferenceValue(
preferenceKey: androidx.datastore.preferences.core.Preferences.Key<T>,
Expand Down

0 comments on commit b1871c2

Please sign in to comment.