fix digits output of timestamp at 10 o'clock
This commit is contained in:
parent
361cd7aca4
commit
71fda9613c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue