Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
olfek authored Sep 17, 2024
1 parent 9480784 commit 737ac3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export class Accounts implements Module {
updateCodes(state: AccountsState) {
let second = new Date().getSeconds();
if (UserSettings.items.offset) {
// prevent second from negative
second += Number(UserSettings.items.offset);
}

// prevent second from negative
second = (second < 0) ? (60 - (second * -1) % 60) : (second % 60);
state.second = second;

Expand Down

0 comments on commit 737ac3f

Please sign in to comment.