mirror of
https://github.com/zoriya/flood.git
synced 2026-05-29 18:04:10 +00:00
Fix secondary torrent props
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user