Skip to content

Commit

Permalink
[fixed] 'isRequireForA11y' undefined/null checking
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Aug 26, 2015
1 parent 4503869 commit e438250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/CustomPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const CustomPropTypes = {

isRequiredForA11y(propType){
return function(props, propName, componentName){
if (props[propName] === null) {
if (props[propName] == null) {
return new Error(
'The prop `' + propName + '` is required to make ' + componentName + ' accessible ' +
'for users using assistive technologies such as screen readers `'
Expand Down

0 comments on commit e438250

Please sign in to comment.