Skip to content

Commit

Permalink
fix add account issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneezry committed Aug 21, 2024
1 parent 4adadda commit 7e03c80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Popup/AddAccountPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export default Vue.extend({
this.newAccount.period = undefined;
}
const defaultEncyptionKey = this.$store.state.accounts.defaultEncryption;
const encryption = this.$store.state.accounts.encryption[
defaultEncyptionKey
];
const entry = new OTPEntry(
{
type,
Expand All @@ -128,7 +133,7 @@ export default Vue.extend({
digits: this.newAccount.digits,
algorithm: this.newAccount.algorithm,
},
this.$store.state.accounts.encryption
encryption
);
await entry.create();
Expand Down

0 comments on commit 7e03c80

Please sign in to comment.