mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 03:03:26 +00:00
[PM-4045] Get error returned when editing an item with a passkey in the CLI (#6379)
* Creationdate doesn't get converted to a date * Creationdate doesn't get converted to a date * removed null assignment
This commit is contained in:
@@ -33,7 +33,7 @@ export class Fido2KeyExport {
|
||||
view.rpName = req.rpName;
|
||||
view.userDisplayName = req.userDisplayName;
|
||||
view.discoverable = req.discoverable === "true";
|
||||
view.creationDate = req.creationDate;
|
||||
view.creationDate = new Date(req.creationDate);
|
||||
return view;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ export class Fido2KeyExport {
|
||||
rpName: string;
|
||||
userDisplayName: string;
|
||||
discoverable: string;
|
||||
creationDate: Date = null;
|
||||
creationDate: Date;
|
||||
|
||||
constructor(o?: Fido2KeyView | Fido2KeyDomain) {
|
||||
if (o == null) {
|
||||
@@ -84,7 +84,6 @@ export class Fido2KeyExport {
|
||||
this.rpName = o.rpName;
|
||||
this.userDisplayName = o.userDisplayName;
|
||||
this.discoverable = String(o.discoverable);
|
||||
this.creationDate = o.creationDate;
|
||||
} else {
|
||||
this.credentialId = o.credentialId?.encryptedString;
|
||||
this.keyType = o.keyType?.encryptedString;
|
||||
@@ -97,7 +96,7 @@ export class Fido2KeyExport {
|
||||
this.rpName = o.rpName?.encryptedString;
|
||||
this.userDisplayName = o.userDisplayName?.encryptedString;
|
||||
this.discoverable = o.discoverable?.encryptedString;
|
||||
this.creationDate = o.creationDate;
|
||||
}
|
||||
this.creationDate = o.creationDate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user