fix digits output of timestamp at 10 o'clock

This commit is contained in:
Tobias Koppers 2020-03-11 11:26:47 +01:00
parent 361cd7aca4
commit 71fda9613c
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ const mapLines = (str, fn) =>
* @param {number} n a number
* @returns {string} number as two digit string, leading 0
*/
const twoDigit = n => (n > 10 ? `${n}` : `0${n}`);
const twoDigit = n => (n >= 10 ? `${n}` : `0${n}`);
const isValidId = id => {
return typeof id === "number" || id;