Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Siddhesh Mhadnak <siddhesh.mhadnak@outlook.com>
  • Loading branch information
posva and sid-maddy committed Mar 30, 2021
1 parent 99df5b6 commit 95de66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/props.js
Expand Up @@ -128,7 +128,7 @@ function assertProp (
}
}

const haveExpectedTypes = expectedTypes.filter(t => t).length;
const haveExpectedTypes = expectedTypes.some(t => t)
if (!valid && haveExpectedTypes) {
warn(
getInvalidTypeMessage(name, value, expectedTypes),
Expand Down

0 comments on commit 95de66b

Please sign in to comment.