Skip to content

Commit

Permalink
Merge pull request #231 from Infomaniak/fix-password-dialog
Browse files Browse the repository at this point in the history
fix: Password would reset when opening then closing the PasswordOption dialog
  • Loading branch information
KevinBoulongne authored Dec 4, 2024
2 parents 13ddd2d + 31c4725 commit 29c536c
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 29c536c

Please sign in to comment.