From 7c69152a86d8ab8cb2d232dcb953b60eaa1f1985 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Sun, 16 Apr 2023 11:23:25 +1000 Subject: [PATCH] fix: null transports Signed-off-by: James Elliott --- web/src/models/WebAuthn.ts | 2 +- .../TwoFactorAuthentication/WebAuthnDeviceDetailsDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/models/WebAuthn.ts b/web/src/models/WebAuthn.ts index eb50b4203..d0254efc8 100644 --- a/web/src/models/WebAuthn.ts +++ b/web/src/models/WebAuthn.ts @@ -115,7 +115,7 @@ export interface WebAuthnDevice { aaguid?: string; attestation_type: string; attachment: string; - transports: string[]; + transports: null | string[]; sign_count: number; clone_warning: boolean; discoverable: boolean; diff --git a/web/src/views/Settings/TwoFactorAuthentication/WebAuthnDeviceDetailsDialog.tsx b/web/src/views/Settings/TwoFactorAuthentication/WebAuthnDeviceDetailsDialog.tsx index b32f2d044..8ae289d17 100644 --- a/web/src/views/Settings/TwoFactorAuthentication/WebAuthnDeviceDetailsDialog.tsx +++ b/web/src/views/Settings/TwoFactorAuthentication/WebAuthnDeviceDetailsDialog.tsx @@ -81,7 +81,7 @@ export default function WebAuthnDeviceDetailsDialog(props: Props) { toTransportName(transport)).join(", ") }