Skip to content

Commit

Permalink
Use getValueOrDefault for totp import in ProtonPass importer
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Oct 25, 2023
1 parent afdcc80 commit de661fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ProtonPassJsonImporter extends BaseImporter implements Importer {
cipher.login.uris = this.makeUriArray(loginContent.urls);
cipher.login.username = loginContent.username;
cipher.login.password = loginContent.password;
cipher.login.totp = loginContent.totpUri;
cipher.login.totp = this.getValueOrDefault(loginContent.totpUri);
for (const extraField of item.data.extraFields) {
this.processKvp(
cipher,
Expand Down

0 comments on commit de661fc

Please sign in to comment.