fix: add ? operator on passkey props
This commit is contained in:
parent
5c90af1928
commit
e54ccebe38
|
@ -21,7 +21,7 @@ const PasskeyListItem = (props: IProps) => {
|
|||
}}
|
||||
startIcon={<KeyIcon />}
|
||||
endIcon={<ChevronRightIcon />}
|
||||
label={props.passkey.friendlyName}
|
||||
label={props.passkey?.friendlyName}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -12,7 +12,7 @@ const PasskeyComponent = (props: IProps) => {
|
|||
return (
|
||||
<>
|
||||
<MenuItemGroup>
|
||||
{props.passkeys.map((passkey, i) => (
|
||||
{props.passkeys?.map((passkey, i) => (
|
||||
<Fragment key={passkey.id}>
|
||||
<PasskeyListItem passkey={passkey} />
|
||||
{i < props.passkeys.length - 1 && <MenuItemDivider />}
|
||||
|
|
Loading…
Reference in a new issue