Skip to content

Commit

Permalink
Make different view(instead of zero) in U/D field for never uploaded …
Browse files Browse the repository at this point in the history
…torrents
  • Loading branch information
dukobpa3 authored and qu1ck committed Jan 5, 2024
1 parent bc4195b commit bd4c80b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
dist
.vscode
.idea
webpack-report.html
tests/manual.torrent
*bkp
Expand Down
4 changes: 3 additions & 1 deletion src/components/tables/torrenttable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ function UploadRatioField(props: TableFieldProps) {
<div style={{ width: "100%", textAlign: "right" }}>
{props.torrent.downloadedEver === 0
? "∞"
: (props.torrent.uploadedEver / props.torrent.downloadedEver).toFixed(2)}
: props.torrent.uploadedEver === 0
? "-"
: (props.torrent.uploadedEver / props.torrent.downloadedEver).toFixed(2)}
</div>
);
}
Expand Down

0 comments on commit bd4c80b

Please sign in to comment.