diff --git a/frontend/app/ui_components/duration-directive.js b/frontend/app/ui_components/duration-directive.js index 049c5c7620..7d710ad788 100644 --- a/frontend/app/ui_components/duration-directive.js +++ b/frontend/app/ui_components/duration-directive.js @@ -32,7 +32,7 @@ module.exports = function($filter, TimezoneService) { require: 'ngModel', link: function(scope, element, attrs, ngModelController) { ngModelController.$parsers.push(function(value) { - if (value) { + if (!isNaN(value)) { var minutes = Number(moment.duration(value, 'hours').asMinutes().toFixed(2)); return moment.duration(minutes, 'minutes'); }