mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
Fix bad boolean in professor-x
This commit is contained in:
parent
5ee802999e
commit
a173ddf375
@ -158,7 +158,7 @@ export default function contain(options = {}, Component) {
|
||||
);
|
||||
|
||||
const fetch$ = action.apply(null, actionArgs);
|
||||
if (__DEV__ && Observable.isObservable(fetch$)) {
|
||||
if (__DEV__ && !Observable.isObservable(fetch$)) {
|
||||
throw new Error(
|
||||
'fetch action should return observable'
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user