Tunnel view model: Initialize peerData.numberOfPeers
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
7fc0e3ee94
commit
b3cc30a207
|
@ -375,6 +375,10 @@ class TunnelViewModel {
|
|||
peersData.append(peerData)
|
||||
}
|
||||
}
|
||||
let numberOfPeers = peersData.count
|
||||
for peerData in peersData {
|
||||
peerData.numberOfPeers = numberOfPeers
|
||||
}
|
||||
}
|
||||
|
||||
func appendEmptyPeer() {
|
||||
|
|
Loading…
Reference in New Issue