diff options
-rw-r--r-- | WireGuard/ViewControllers/TunnelInfoTableViewController.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/ViewControllers/TunnelInfoTableViewController.swift b/WireGuard/ViewControllers/TunnelInfoTableViewController.swift index fe528ed..f91c41b 100644 --- a/WireGuard/ViewControllers/TunnelInfoTableViewController.swift +++ b/WireGuard/ViewControllers/TunnelInfoTableViewController.swift @@ -40,13 +40,13 @@ class TunnelInfoTableViewController: UITableViewController { } override func numberOfSections(in tableView: UITableView) -> Int { - return 3 + return 2 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { switch section { case 1: - return tunnel?.peers?.count ?? 1 + return tunnel?.peers?.count ?? 0 default: return 1 } |