Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
fix deprecated prop validator
Browse files Browse the repository at this point in the history
  • Loading branch information
boygirl committed Feb 22, 2017
1 parent 31a464f commit 5bc8167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/victory-util/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
if (process.env.NODE_ENV !== "production") {
/* eslint-disable no-console */
if (typeof console !== "undefined" && console.error) {
if (props[propName] !== null) {
if (props[propName] !== null && props[propName] !== undefined) {
console.error(false,
`"${propName}" property of "${componentName}" has been deprecated ${explanation}`);
}
Expand Down

0 comments on commit 5bc8167

Please sign in to comment.