Skip to content

Commit

Permalink
Update compiled files
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 10, 2017
1 parent fe20dbb commit e169909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ var Calendar = function (_Component) {

var onChange = _this.props.onChange;

var processedValue = _this.getProcessedValue(value);
if (onChange) onChange(processedValue);
if (onChange) {
var processedValue = _this.getProcessedValue(value);
onChange(processedValue);
}
}, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
}

Expand Down
2 changes: 1 addition & 1 deletion build/shared/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var isView = exports.isView = function isView(props, propName, componentName) {

var allowedViews = views || allViews;

if (!allowedViews.includes(view)) {
if (allowedViews.indexOf(view) === -1) {
return new Error('Warning: Failed prop type: Invalid prop `' + propName + '` of value `' + view + '` supplied to `' + componentName + '`, expected one of [' + ['a', 'b', 'c', 'd', 'e'].map(function (a) {
return '"' + a + '"';
}).join(', ') + '].');
Expand Down

0 comments on commit e169909

Please sign in to comment.