Skip to content

Commit e1055b1

Browse files
author
Roy Sutton
committed
Find es5
1 parent d800461 commit e1055b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-invalid-default-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ module.exports = {
329329
}
330330

331331
function propFromName(propTypes, name) {
332-
return propTypes.find(function (prop) {
332+
return find(propTypes, function (prop) {
333333
return prop.name === name;
334334
});
335335
}

0 commit comments

Comments
 (0)