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:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user