padding for when seconds == 0
Resolves this issue: 
This commit is contained in:
committed by
GitHub
parent
7ef9eb5b94
commit
f36073a89e
@ -27,7 +27,7 @@ export default class Dater extends React.Component{
|
||||
// get left-over number of seconds
|
||||
seconds = total_seconds - (total_minutes * 60 )
|
||||
if (seconds <= 9) seconds = '0'+ seconds
|
||||
if (seconds == 0) seconds = '0'
|
||||
if (seconds == 0) seconds = '00'
|
||||
|
||||
// get left-over number of minutes
|
||||
minutes = total_minutes - (total_hours * 60 )
|
||||
@ -118,4 +118,4 @@ export default class Dater extends React.Component{
|
||||
return <span className="dater">{ this.calculate() }</span>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user