From 019c0759ed74ca564a39550d71593fc020afce74 Mon Sep 17 00:00:00 2001 From: Hussain Khalil Date: Sat, 2 Dec 2017 18:16:33 -0500 Subject: [PATCH] Check peer encryption status as string instead of boolean --- .../components/modals/torrent-details-modal/TorrentPeers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/javascript/components/modals/torrent-details-modal/TorrentPeers.js b/client/src/javascript/components/modals/torrent-details-modal/TorrentPeers.js index 2624bf2c..1434380a 100644 --- a/client/src/javascript/components/modals/torrent-details-modal/TorrentPeers.js +++ b/client/src/javascript/components/modals/torrent-details-modal/TorrentPeers.js @@ -31,7 +31,7 @@ export default class TorrentPeers extends React.Component { const {erroredCountryImages} = this.state; const peerList = peers.map((peer, index) => { const {country: countryCode} = peer; - const encryptedIcon = peer.isEncrypted ? checkmark : null; + const encryptedIcon = peer.isEncrypted === "1" ? checkmark : null; let peerCountry = null; if (countryCode) {