mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
fix: properly convert minutes to milliseconds for debounce function Passphrases.handle
This commit is contained in:
parent
c0348893af
commit
486acde2e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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]();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue