Skip to content

Commit ad137a0

Browse files
fix: display name if email is unavailable, twitter sometimes user username instead of email
1 parent ef5f786 commit ad137a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/SignedInView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ extension SignedInView: View {
3939
.padding()
4040
.accessibilityIdentifier("signed-in-text")
4141
Text(authService.string.accountSettingsEmailLabel)
42-
Text("\(authService.currentUser?.email ?? "Unknown")")
43-
42+
Text("\(authService.currentUser?.email ?? authService.currentUser?.displayName ?? "Unknown")")
4443
if authService.currentUser?.isEmailVerified == false {
4544
VerifyEmailView()
4645
}

0 commit comments

Comments
 (0)