WIP: #258 Compare page
This commit is contained in:
@@ -182,7 +182,7 @@ export function followTimeLabel(second, max, fixedNumber = 0) {
|
||||
result = (second / day).toFixed(fixedNumber) + 'd';
|
||||
break;
|
||||
case 'h':
|
||||
if(((second % day) / hour) === 0) {
|
||||
if((second / hour) === 0) {
|
||||
fixedNumber = 0;
|
||||
}
|
||||
result = (second / hour).toFixed(fixedNumber) + 'h';
|
||||
|
||||
Reference in New Issue
Block a user