Skip to content

Commit

Permalink
fix: properly convert minutes to milliseconds for debounce function P…
Browse files Browse the repository at this point in the history
…assphrases.handle
  • Loading branch information
SergeyMosin committed Dec 9, 2024
1 parent c034889 commit 486acde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/Storage/Passphrases.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const timeouts = {};
Passphrases.handle = (key, pass) => {
const timeout = SettingsUserStore.keyPassForget();
if (timeout && !timeouts[key]) {
timeouts[key] = (()=>Passphrases.delete(key)).debounce(timeout * 1000);
timeouts[key] = (()=>Passphrases.delete(key)).debounce(timeout * 60 * 1000);
}
pass && Passphrases.set(key, pass);
timeout && timeouts[key]();
Expand Down

0 comments on commit 486acde

Please sign in to comment.