diff options
-rw-r--r-- | src/components/ScanView.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ScanView.js b/src/components/ScanView.js index 012a58f..8ad3f38 100644 --- a/src/components/ScanView.js +++ b/src/components/ScanView.js @@ -41,9 +41,9 @@ function ScanView(props) { // TODO: Trigger a real re-scan function rescan() { - this.setState({ rescanInProgress: true }); + setRescanInProgress(true); setTimeout(() => { - setRescanInProgress(true); + setRescanInProgress(false); setTimestamp(Date.now()); }, 2000); } |