Check peer encryption status as string instead of boolean

This commit is contained in:
Hussain Khalil
2017-12-02 18:16:33 -05:00
parent bba07ed3de
commit 019c0759ed
@@ -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) {