From 712dac874fbd9b507fde0ce6713cf28c55da73ef Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Sun, 4 Mar 2018 19:32:38 -0800 Subject: [PATCH] Fix a bug with the short time format --- src/js/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/filters.js b/src/js/filters.js index 3314906..df843c9 100644 --- a/src/js/filters.js +++ b/src/js/filters.js @@ -51,7 +51,7 @@ Vue.filter('duration', function(value, hideSeconds = false) { // Format for translation days = days && $t('time.daysShort', { days }, parseInt(days)); - hours = hours && $t('time.hoursShort', { hours }, parseInt(hours)); + hours = (days || hours) && $t('time.hoursShort', { hours }, parseInt(hours)); minutes = $t('time.minutesShort', { minutes }, parseInt(minutes)); seconds = $t('time.secondsShort', { seconds }, parseInt(seconds));