Skip to content

Commit 7d6491a

Browse files
committed
refactor: fix invalid test
1 parent 5bed121 commit 7d6491a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/rules/require-default-props.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ module.exports = {
8484
* @return {void}
8585
*/
8686
function reportPropTypesWithoutDefault(propTypes, defaultProps) {
87-
entries(propTypes).forEach(([propName, prop]) => {
87+
entries(propTypes).forEach((propType) => {
88+
const propName = propType[0];
89+
const prop = propType[1];
90+
8891
if (!prop.node) {
8992
return;
9093
}

0 commit comments

Comments
 (0)