diff --git a/src/ui/add_torrent.js b/src/ui/add_torrent.js
index 3bb055d..6ab60a2 100644
--- a/src/ui/add_torrent.js
+++ b/src/ui/add_torrent.js
@@ -75,10 +75,10 @@ class AddTorrent extends Component {
downloadThrottle
} = this.state;
const { dispatch } = this.props;
- const customize = // TODO: File options
+ const customize =
priority !== 3 ||
- uploadThrottle !== -1 ||
- downloadThrottle !== -1;
+ uploadThrottle !== null ||
+ downloadThrottle !== null;
if (!customize) {
dispatch(push(`/torrents/${id}`));
return;
@@ -102,10 +102,10 @@ class AddTorrent extends Component {
this.setState({ loading: true });
const { magnet, file, start } = this.state;
const { dispatch } = this.props;
- const customize = // TODO: File options
+ const customize =
this.state.priority !== 3 ||
- this.state.uploadThrottle !== -1 ||
- this.state.downloadThrottle !== -1;
+ this.state.uploadThrottle !== null ||
+ this.state.downloadThrottle !== null;
const handleOffer = async offer => {
switch (offer.type) {
case "TRANSFER_OFFER":
@@ -232,15 +232,6 @@ class AddTorrent extends Component {
{this.renderOptions.bind(this)()}
- {torrent &&
-
-
-
- TODO
-
-
-
- }