Skip to content

Commit f268647

Browse files
committed
Better arg name
1 parent 8a7d8ae commit f268647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/utils/PropTypes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ var PropTypes = {
33
/**
44
* Requires that the value of a prop be falsy.
55
*/
6-
falsy: function (props, propName, elementName) {
6+
falsy: function (props, propName, componentName) {
77
if (props[propName])
8-
return new Error('<' + elementName + '> may not have a "' + propName + '" prop');
8+
return new Error('<' + componentName + '> may not have a "' + propName + '" prop');
99
}
1010

1111
};

0 commit comments

Comments
 (0)