Tunnel view model: Initialize peerData.numberOfPeers

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-11-02 12:05:40 +05:30
parent 7fc0e3ee94
commit b3cc30a207
1 changed files with 4 additions and 0 deletions

View File

@ -375,6 +375,10 @@ class TunnelViewModel {
peersData.append(peerData)
}
}
let numberOfPeers = peersData.count
for peerData in peersData {
peerData.numberOfPeers = numberOfPeers
}
}
func appendEmptyPeer() {