diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/PasswordOptionAlertDialog.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/PasswordOptionAlertDialog.kt index c8c1f53b5..709b3527a 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/PasswordOptionAlertDialog.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/PasswordOptionAlertDialog.kt @@ -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()