Skip to content

Commit

Permalink
Fix a eslint@6 error
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Aug 26, 2019
1 parent 0c5f764 commit 07dbe01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connect/verifySubselectors.js
Expand Up @@ -7,7 +7,7 @@ function verify(selector, methodName, displayName) {
methodName === 'mapStateToProps' ||
methodName === 'mapDispatchToProps'
) {
if (!selector.hasOwnProperty('dependsOnOwnProps')) {
if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
warning(
`The selector for ${methodName} of ${displayName} did not specify a value for dependsOnOwnProps.`
)
Expand Down

0 comments on commit 07dbe01

Please sign in to comment.