Fix formatting of measurement units

There were some incorrectly formatted unit symbols and units names in
the app, so this commit fixes them per SI and ISO/IEC specifications.
This commit is contained in:
Varun Varada
2020-12-22 18:58:43 -06:00
parent 919af5bf15
commit d299704f57
2 changed files with 8 additions and 8 deletions

View File

@@ -198,9 +198,9 @@ module.exports = class TorrentList extends React.Component {
// Only display hours and minutes if they are greater than 0 but always
// display minutes if hours is being displayed
const hoursStr = hours ? hours + 'h' : ''
const minutesStr = (hours || minutes) ? minutes + 'm' : ''
const secondsStr = seconds + 's'
const hoursStr = hours ? hours + ' h' : ''
const minutesStr = (hours || minutes) ? minutes + ' min' : ''
const secondsStr = seconds + ' s'
return (<span key='eta'>{hoursStr} {minutesStr} {secondsStr} remaining</span>)
}