mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-23 13:00:41 -04:00
Fix bad boolean in professor-x
This commit is contained in:
@@ -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'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user