mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 11:35:11 +00:00
Check peer encryption status as string instead of boolean
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user