fix missing hours if days in formatTime
This commit is contained in:
		
							parent
							
								
									7b2c6e110a
								
							
						
					
					
						commit
						80b24a916c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -9,7 +9,7 @@ function formatTime(number) {
 | 
			
		|||
 | 
			
		||||
  return (
 | 
			
		||||
    (days !== 0 ? `${days.toString().padStart(2, "0")}:` : "") +
 | 
			
		||||
    (hours !== 0 ? `${hours.toString().padStart(2, "0")}:` : "") +
 | 
			
		||||
    (days !== 0 && hours !== 0 ? `${hours.toString().padStart(2, "0")}:` : "") +
 | 
			
		||||
    `${minutes.toString().padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue