We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdfd534d commitffd1c82Copy full SHA for ffd1c82
src/lib/actions.js
@@ -31,16 +31,16 @@ const selectIdleState = state => {
31
const{ idle}=state
32
if(IS_DEV){
33
invariant(idle,'idle monitor state should have idle value')
34
-invariant(typeofstate.idle==='object')
+invariant(typeofidle==='object','idle monitor state should have typeobject')
35
}
36
returnidle
37
38
39
constisRunning=(dispatch,getState)=>{
40
const{ isDetectionRunning}=selectIdleState(getState())
41
42
-invariant('isDetectionRunning','idle monitor state should have idDetectionRunning defined')
43
-invariant(typeofisDetectionRunning==='boolean')
+invariant(isDetectionRunning,'idle monitor state should have idDetectionRunning defined')
+invariant(typeofisDetectionRunning==='boolean','isDetectionRunning should be type boolean')
44
45
returnisDetectionRunning
46