Issue #158: Done.

This commit is contained in:
chiayin
2023-09-28 12:49:32 +08:00
parent 5ea268cc77
commit 18f376c734
2 changed files with 1 additions and 2 deletions

View File

@@ -182,7 +182,6 @@ import iconNA from '@/components/icons/IconNA.vue';
import MoreModal from './MoreModal.vue';
import getNumberLabel from '@/module/numberLabel.js';
import { setLineChartData, setBarChartData, timeRange, yTimeRange, getXIndex, formatTime } from '@/module/setChartData.js';
import abbreviateNumber from '@/module/abbreviateNumber.js';
import shortScaleNumber from '@/module/shortScaleNumber.js';
import getMoment from 'moment';

View File

@@ -24,7 +24,7 @@ export default function abbreviateNumber(totalSeconds) {
if(units[i] > 0) result += units[i] + symbols[i] + " ";
}
result.trim();
if(totalSeconds === 0) result = '0 s';
if(totalSeconds === 0) result = '0';
return result;
};