@ -20,7 +20,7 @@ function TimeleftCell(props) {
timeFormat
timeFormat
} = props ;
} = props ;
if ( status === ' D elay') {
if ( status === ' d elay') {
const date = getRelativeDate ( estimatedCompletionTime , shortDateFormat , showRelativeDates ) ;
const date = getRelativeDate ( estimatedCompletionTime , shortDateFormat , showRelativeDates ) ;
const time = formatTime ( estimatedCompletionTime , timeFormat , { includeMinuteZero : true } ) ;
const time = formatTime ( estimatedCompletionTime , timeFormat , { includeMinuteZero : true } ) ;
@ -34,7 +34,7 @@ function TimeleftCell(props) {
) ;
) ;
}
}
if ( status === ' D ownloadClientUnavailable') {
if ( status === ' d ownloadClientUnavailable') {
const date = getRelativeDate ( estimatedCompletionTime , shortDateFormat , showRelativeDates ) ;
const date = getRelativeDate ( estimatedCompletionTime , shortDateFormat , showRelativeDates ) ;
const time = formatTime ( estimatedCompletionTime , timeFormat , { includeMinuteZero : true } ) ;
const time = formatTime ( estimatedCompletionTime , timeFormat , { includeMinuteZero : true } ) ;
@ -48,7 +48,7 @@ function TimeleftCell(props) {
) ;
) ;
}
}
if ( ! timeleft ) {
if ( ! timeleft || status === 'completed' || status === 'failed' ) {
return (
return (
< TableRowCell className = { styles . timeleft } >
< TableRowCell className = { styles . timeleft } >
-
-