Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update ExistingPasskeyRow.swift (#1404)

Leendert de Borst6f71960d94b1
diff --git a/apps/mobile-app/ios/VaultUI/Registration/Passkeys/Components/ExistingPasskeyRow.swift b/apps/mobile-app/ios/VaultUI/Registration/Passkeys/Components/ExistingPasskeyRow.swift
index d7d28774e..e72918a7c 100644
--- a/apps/mobile-app/ios/VaultUI/Registration/Passkeys/Components/ExistingPasskeyRow.swift
+++ b/apps/mobile-app/ios/VaultUI/Registration/Passkeys/Components/ExistingPasskeyRow.swift
@@ -15,17 +15,10 @@ struct ExistingPasskeyRow: View {
.frame(width: 24)
VStack(alignment: .leading, spacing: 4) {
- Text(passkey.displayName)
+ Text(passkey.serviceName ?? passkey.displayName)
.font(.body)
.fontWeight(.medium)
.foregroundColor(colorScheme == .dark ? ColorConstants.Dark.text : ColorConstants.Light.text)
-
- if let serviceName = passkey.serviceName {
- Text(serviceName)
- .font(.caption)
- .foregroundColor(colorScheme == .dark ? ColorConstants.Dark.textMuted : ColorConstants.Light.textMuted)
- }
-
if let username = passkey.username {
Text(username)
.font(.caption)