Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffd1c82

Browse files
authored
Fixed invariant errors.
1 parentdfd534d commitffd1c82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/lib/actions.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ const selectIdleState = state => {
3131
const{ idle}=state
3232
if(IS_DEV){
3333
invariant(idle,'idle monitor state should have idle value')
34-
invariant(typeofstate.idle==='object')
34+
invariant(typeofidle==='object','idle monitor state should have typeobject')
3535
}
3636
returnidle
3737
}
3838

3939
constisRunning=(dispatch,getState)=>{
4040
const{ isDetectionRunning}=selectIdleState(getState())
4141
if(IS_DEV){
42-
invariant('isDetectionRunning','idle monitor state should have idDetectionRunning defined')
43-
invariant(typeofisDetectionRunning==='boolean')
42+
invariant(isDetectionRunning,'idle monitor state should have idDetectionRunning defined')
43+
invariant(typeofisDetectionRunning==='boolean','isDetectionRunning should be type boolean')
4444
}
4545
returnisDetectionRunning
4646
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp