Fix a bug with the short time format

This commit is contained in:
Matt Isenhower
2018-03-04 19:32:38 -08:00
parent 0025c5b319
commit 712dac874f

View File

@@ -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));