diff --git a/src/main/resources/webapp/js/libs/ractive.customDefaults.js b/src/main/resources/webapp/js/libs/ractive.customDefaults.js index 66ea2dc..afb2fb0 100644 --- a/src/main/resources/webapp/js/libs/ractive.customDefaults.js +++ b/src/main/resources/webapp/js/libs/ractive.customDefaults.js @@ -16,7 +16,7 @@ define(['ractivejsWithoutDefaults', 'i18next', 'moment', 'jquery'], function(Rac // since Ractivejs reevaluates functions that depends on a reference that has // changed. var locale = this.get('locale'); - return moment.duration(duration).humanize(); + return duration != 0 ? moment.duration(duration).humanize() : 0; } helpers.formatDateTime = function(timestamp) {