Skip to content

Commit

Permalink
fix: Password would reset when opening then closing the PasswordOptio…
Browse files Browse the repository at this point in the history
…n dialog
  • Loading branch information
KevinBoulongne committed Dec 4, 2024
1 parent 13ddd2d commit f7acedd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fun PasswordOptionAlertDialog(
) {

var isPasswordActivated by rememberSaveable { mutableStateOf(password.get().isNotEmpty()) }
var lastValidPassword by remember { mutableStateOf("") }
var lastValidPassword by remember { mutableStateOf(password.get()) }

fun onDismiss() {
isPasswordActivated = lastValidPassword.isNotEmpty()
Expand Down

0 comments on commit f7acedd

Please sign in to comment.