1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-28 02:23:25 +00:00

don't fallback to empty string in login export

This commit is contained in:
jaasen-livefront
2025-11-10 11:44:12 -08:00
parent be6bd0d4cd
commit 4136218f98

View File

@@ -43,11 +43,11 @@ export class LoginExport {
return domain;
}
uris: LoginUriExport[] = [];
username: string = "";
password: string = "";
totp: string = "";
fido2Credentials: Fido2CredentialExport[] = [];
uris?: LoginUriExport[];
username?: string;
password?: string;
totp?: string;
fido2Credentials?: Fido2CredentialExport[];
constructor(o?: LoginView | LoginDomain) {
if (o == null) {
@@ -62,8 +62,8 @@ export class LoginExport {
this.fido2Credentials = o.fido2Credentials.map((key) => new Fido2CredentialExport(key));
}
this.username = safeGetString(o.username) ?? "";
this.password = safeGetString(o.password) ?? "";
this.totp = safeGetString(o.totp) ?? "";
this.username = safeGetString(o.username);
this.password = safeGetString(o.password);
this.totp = safeGetString(o.totp);
}
}