Skip to content

Commit

Permalink
Use typeof when comparing undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
helfer committed Jan 5, 2017
1 parent ebf9751 commit 8996670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ export default class ApolloClient {
}

// ensure existing store has apolloReducer
if (reduxRootSelector(store.getState()) === undefined) {
if (typeof reduxRootSelector(store.getState()) === 'undefined') {
throw new Error(
'Existing store does not use apolloReducer. Please make sure the store ' +
'is properly configured and "reduxRootSelector" is correctly specified.',
Expand Down

0 comments on commit 8996670

Please sign in to comment.