Fix secondary torrent props

This commit is contained in:
John Furrow
2016-03-26 23:40:34 -07:00
parent 56ce8888f6
commit 6f2a6cda79
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ const format = {
{eta.minutes}<em className="unit">m</em>
</span>
<span className="torrent__details--segment">
{eta.remainingSeconds}<em className="unit">s</em>
{eta.seconds}<em className="unit">s</em>
</span>
</span>
);
+2 -2
View File
@@ -20,10 +20,10 @@ export function sortTorrents(torrentsHash, sortBy) {
}
// if it's not infinity, compare the second as numbers
if (valA !== 'Infinity') {
valA = Number(valA.seconds);
valA = Number(valA.cumSeconds);
}
if (valB !== 'Infinity') {
valB = Number(valB.seconds);
valB = Number(valB.cumSeconds);
}
} else if (property === 'name') {
valA = valA.toLowerCase();