Skip to content

Commit 5cd4a17

Browse files
committed
Fixed profile name and email id missing on second launch after login in profile screen
1 parent ebf0d99 commit 5cd4a17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GoInfoGame/GoInfoGame/Login/ViewModel/PosmLoginViewModel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ class PosmLoginViewModel: ObservableObject {
5454
if !SessionManager.shared.hasDeclinedBiometric(for: env) {
5555
if !SessionManager.shared.isBiometricEnabled(for: env) ||
5656
(SessionManager.shared.isBiometricEnabled(for: env) && self.username != KeychainManager.load(.username, for: env)){
57+
_ = KeychainManager.save(.username, value: username, for: env)
5758
self.showBiometricPrompt = true
5859
return
5960
}
6061
}
6162
}
63+
_ = KeychainManager.save(.username, value: username, for: env)
6264
self.isLoginSuccess = success
6365
} else {
6466
self.hasLoginFailed = !success

0 commit comments

Comments
 (0)