Skip to content

Commit

Permalink
verbose is king
Browse files Browse the repository at this point in the history
Co-authored-by: Brendan Early <[email protected]>
  • Loading branch information
olfek and mymindstorm authored Oct 21, 2024
1 parent 737ac3f commit 355f8b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/store/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ export class Accounts implements Module {
second += Number(UserSettings.items.offset);
}

// prevent second from negative
second = (second < 0) ? (60 - (second * -1) % 60) : (second % 60);
if (second < 0) {
// Handle the situation where offset causes `second` to be negative. #1310
second = 60 - ((second * -1) % 60)
} else {
second = second % 60
}
state.second = second;

let currentlyEncrypted = false;
Expand Down

0 comments on commit 355f8b9

Please sign in to comment.