From 14c40afa3a969cc7c5368267d8afdf8a111ef4f3 Mon Sep 17 00:00:00 2001 From: gbubemismith Date: Thu, 21 Sep 2023 18:06:11 -0400 Subject: [PATCH] Fixed iso string issue where the date wasn't converted back to Date --- libs/common/src/vault/models/view/fido2-key.view.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, + }); } }