We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bbc901 commit 321b2f3Copy full SHA for 321b2f3
app/src/main/java/com/yogeshpaliyal/keypass/ui/auth/AuthScreen.kt
@@ -43,6 +43,15 @@ fun AuthScreen(state: AuthState) {
43
dispatchAction(NavigationAction(AuthState.CreatePassword, true))
44
}
45
46
+ // Reset password field when navigating to ConfirmPassword state
47
+ LaunchedEffect(state) {
48
+ if (state is AuthState.ConfirmPassword) {
49
+ password.value = ""
50
+ passwordVisible.value = false
51
+ passwordError.value = null
52
+ }
53
54
+
55
LaunchedEffect(key1 = userSettings.keyPassPassword) {
56
val mPassword = userSettings.keyPassPassword
57
if (mPassword == null) {
@@ -103,4 +112,4 @@ fun AuthScreen(state: AuthState) {
103
112
dispatchAction(it)
104
113
105
114
106
-}
115
+}
0 commit comments