diff --git a/src/sb-date-select.js b/src/sb-date-select.js index a841d20..94187be 100644 --- a/src/sb-date-select.js +++ b/src/sb-date-select.js @@ -12,7 +12,7 @@ angular.module('sbDateSelect', []) '', - '', '', '', '' @@ -87,7 +87,7 @@ angular.module('sbDateSelect', []) if (scope.val.year && scope.val.month && max.isSame([scope.val.year, scope.val.month-1], 'month')) { maxDate = max.date(); - } else if (scope.val.year && scope.val.month) { + } else if (scope.val.year && scope.val.month) { maxDate = moment([scope.val.year, scope.val.month-1]).daysInMonth(); } else { maxDate = 31; @@ -117,4 +117,3 @@ angular.module('sbDateSelect', []) } }; }]); -