diff --git a/libs/common/src/vault/models/view/fido2-key.view.ts b/libs/common/src/vault/models/view/fido2-key.view.ts index 600c12dda98..b697955c92e 100644 --- a/libs/common/src/vault/models/view/fido2-key.view.ts +++ b/libs/common/src/vault/models/view/fido2-key.view.ts @@ -29,6 +29,9 @@ export class Fido2KeyView extends ItemView { } static fromJSON(obj: Partial>): Fido2KeyView { - return Object.assign(new Fido2KeyView(), obj); + const creationDate = obj.creationDate != null ? new Date(obj.creationDate) : null; + return Object.assign(new Fido2KeyView(), obj, { + creationDate, + }); } }