Skip to content

Commit 6ae872d

Browse files
authored
fix add account issue (#1264)
1 parent 4adadda commit 6ae872d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Popup/AddAccountPage.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ export default Vue.extend({
115115
this.newAccount.period = undefined;
116116
}
117117
118+
const defaultEncyptionKey = this.$store.state.accounts.defaultEncryption;
119+
const encryption = this.$store.state.accounts.encryption[
120+
defaultEncyptionKey
121+
];
122+
118123
const entry = new OTPEntry(
119124
{
120125
type,
@@ -128,7 +133,7 @@ export default Vue.extend({
128133
digits: this.newAccount.digits,
129134
algorithm: this.newAccount.algorithm,
130135
},
131-
this.$store.state.accounts.encryption
136+
encryption
132137
);
133138
134139
await entry.create();

0 commit comments

Comments
 (0)