1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 18:53:20 +00:00

Fixed iso string issue where the date wasn't converted back to Date (#6364)

This commit is contained in:
SmithThe4th
2023-09-21 18:50:14 -04:00
committed by GitHub
parent f08d037f7b
commit 49bb7a39c7

View File

@@ -29,6 +29,9 @@ export class Fido2KeyView extends ItemView {
}
static fromJSON(obj: Partial<Jsonify<Fido2KeyView>>): Fido2KeyView {
return Object.assign(new Fido2KeyView(), obj);
const creationDate = obj.creationDate != null ? new Date(obj.creationDate) : null;
return Object.assign(new Fido2KeyView(), obj, {
creationDate,
});
}
}