From d6f2b08ec05e6216761ef880e89402ed8755072a Mon Sep 17 00:00:00 2001 From: Juan Cortes Ross Date: Mon, 31 Dec 2018 15:13:17 +0100 Subject: [PATCH] Removed unnecessary wrapper arrow function --- src/components/Idler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Idler.js b/src/components/Idler.js index 6aa1f559..392f5e77 100644 --- a/src/components/Idler.js +++ b/src/components/Idler.js @@ -40,7 +40,7 @@ class Idler extends PureComponent { lastAction: number = -1 - debounceOnChange = debounce(_ => this.idleTimeHandler(), 1000, { maxWait: 1000, leading: true }) + debounceOnChange = debounce(this.idleTimeHandler, 1000, { maxWait: 1000, leading: true }) checkForAutoLock = _ => { const timeout = this.props.autoLockTimeout