fix: null transports
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>feat-otp-email-verify
parent
c3e785872d
commit
7c69152a86
|
@ -115,7 +115,7 @@ export interface WebAuthnDevice {
|
||||||
aaguid?: string;
|
aaguid?: string;
|
||||||
attestation_type: string;
|
attestation_type: string;
|
||||||
attachment: string;
|
attachment: string;
|
||||||
transports: string[];
|
transports: null | string[];
|
||||||
sign_count: number;
|
sign_count: number;
|
||||||
clone_warning: boolean;
|
clone_warning: boolean;
|
||||||
discoverable: boolean;
|
discoverable: boolean;
|
||||||
|
|
|
@ -81,7 +81,7 @@ export default function WebAuthnDeviceDetailsDialog(props: Props) {
|
||||||
<PropertyText
|
<PropertyText
|
||||||
name={translate("Transports")}
|
name={translate("Transports")}
|
||||||
value={
|
value={
|
||||||
props.device.transports.length === 0
|
props.device.transports === null || props.device.transports.length === 0
|
||||||
? "N/A"
|
? "N/A"
|
||||||
: props.device.transports.map((transport) => toTransportName(transport)).join(", ")
|
: props.device.transports.map((transport) => toTransportName(transport)).join(", ")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue