Fix missing zero-padding on troubleshoot (#1974)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									c6169607ae
								
							
						
					
					
						commit
						546f627177
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -22,9 +22,9 @@ const AvailabilityView = ({ user }: { user: User }) => {
 | 
			
		|||
  function convertMinsToHrsMins(mins: number) {
 | 
			
		||||
    let h = Math.floor(mins / 60);
 | 
			
		||||
    let m = mins % 60;
 | 
			
		||||
    h = h < 10 ? 0 + h : h;
 | 
			
		||||
    m = m < 10 ? 0 + m : m;
 | 
			
		||||
    return `${h}:${m}`;
 | 
			
		||||
    let hs = h < 10 ? "0" + h : h;
 | 
			
		||||
    let ms = m < 10 ? "0" + m : m;
 | 
			
		||||
    return `${hs}:${ms}`;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue