Add quick filter buttons.

This commit is contained in:
Mike Cao 2020-07-30 01:08:21 -07:00
parent 9beec1b50e
commit ff4492ffb5
10 changed files with 80 additions and 25 deletions

View file

@ -24,7 +24,7 @@ export function formatTime(val) {
}
export function formatShortTime(val, formats = ['m', 's'], space = '') {
if (val === 0) {
if (val <= 0) {
return `0${formats[formats.length - 1]}`;
}