This commit is contained in:
Daniel Shleifman
2021-06-04 22:16:59 +03:00
parent 5a881836cb
commit 2ce6388daf
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ export function humanizeSize(size) {
}
export function getPeerString(torrent) {
if (!torrent || !torrent.connected_seeders) return '[0] 0 / 0'
if (!torrent || !torrent.connected_seeders) return null
return `[${torrent.connected_seeders}] ${torrent.active_peers} / ${torrent.total_peers}`
}