Skip to content

Commit 8f898be

Browse files
committed
fix #348
1 parent ec47727 commit 8f898be

File tree

2 files changed

+43
-22
lines changed

2 files changed

+43
-22
lines changed

package-lock.json

Lines changed: 39 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/otp.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ class OTPEntry implements OTP {
5757
return;
5858
}
5959
this.generate();
60-
this.counter++;
61-
await this.update(encryption);
60+
if (this.secret !== 'Encrypted') {
61+
this.counter++;
62+
await this.update(encryption);
63+
}
6264
return;
6365
}
6466

0 commit comments

Comments
 (0)