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 }