Skip to content

Commit 70186e5

Browse files
committed
Copy currentUserInfo for clarity
1 parent 4cfd072 commit 70186e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authenticator/src/main/java/com/amplifyframework/ui/authenticator/AuthenticatorViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ internal class AuthenticatorViewModel(
434434
// flow in order to select a factor again.
435435
val flowRestartRequired = currentUserInfo.selectedAuthFactor != null
436436

437-
currentUserInfo = info.copy(password = password, selectedAuthFactor = authFactor)
437+
currentUserInfo = currentUserInfo.copy(password = password, selectedAuthFactor = authFactor)
438438

439439
if (flowRestartRequired) {
440440
// Call signIn to restart the flow but select the same factor

0 commit comments

Comments
 (0)