Standardize internal UI state property naming.

This commit is contained in:
Jeffrey Starke
2025-10-22 09:45:49 -04:00
committed by Greyson Parrelli
parent d4c266561f
commit e235ce52e5
9 changed files with 82 additions and 83 deletions

View File

@@ -243,8 +243,8 @@ class RegistrationViewModel : ViewModel() {
}
fun togglePinKeyboardType() {
store.update { previousState ->
previousState.copy(pinKeyboardType = previousState.pinKeyboardType.other)
store.update {
it.copy(pinKeyboardType = it.pinKeyboardType.other)
}
}

View File

@@ -31,8 +31,8 @@ class ReRegisterWithPinViewModel : ViewModel() {
}
fun toggleKeyboardType() {
store.update { previousState ->
previousState.copy(pinKeyboardType = previousState.pinKeyboardType.other)
store.update {
it.copy(pinKeyboardType = it.pinKeyboardType.other)
}
}
}