Fix torrent filter

This commit is contained in:
John Furrow
2016-01-03 21:03:11 -05:00
parent f0ab3a347b
commit 9c24c36122
2 changed files with 54 additions and 54 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
export function filterTorrents(torrents, filterBy) {
export function filterTorrents(torrentList, filterBy) {
if (filterBy !== 'all') {
torrents = torrentList.filter(torrent => {
torrentList = torrentList.filter(torrent => {
if (torrent.status.indexOf('is-' + filterBy) > -1) {
return torrent;
}
});
}
return torrents;
return torrentList;
}