From ee35e6b1ad8fc8fe41fc1f9b57835b63b1658f18 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 18 Feb 2026 02:05:06 +0000 Subject: [PATCH] Fix passkey icons lost in refactoring. --- e2e/tests/fixtures/passkey-helpers.ts | 2 +- frontend/src/components/CredentialList.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/tests/fixtures/passkey-helpers.ts b/e2e/tests/fixtures/passkey-helpers.ts index c0d365b..8fa61c8 100644 --- a/e2e/tests/fixtures/passkey-helpers.ts +++ b/e2e/tests/fixtures/passkey-helpers.ts @@ -44,7 +44,7 @@ export interface UserInfo { sign_count: number is_current_session: boolean }> - aaguid_info: Record + aaguid_info: Record sessions: Array<{ id: string credential: string diff --git a/frontend/src/components/CredentialList.vue b/frontend/src/components/CredentialList.vue index 623199d..6c06315 100644 --- a/frontend/src/components/CredentialList.vue +++ b/frontend/src/components/CredentialList.vue @@ -148,8 +148,8 @@ const getCredentialAuthIcon = (credential) => { const info = props.aaguidInfo?.[credential.aaguid] if (!info) return null const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches - const iconKey = isDarkMode ? 'icon_dark' : 'icon_light' - return info[iconKey] || null + // Fall back to icon if icon_dark is not available + return (isDarkMode && info.icon_dark) || info.icon || null }