Skip to content

Commit

Permalink
Fix status page values
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecNew10 committed Apr 6, 2023
1 parent 2f89e6f commit 614feb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appdb/Models/ServiceStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct ServiceStatus: Mappable {

var name: String = ""
var isOnline = false
var data: Int?
var data: String?

mutating func mapping(map: Map) {
name <- map["name"]
Expand Down
2 changes: 1 addition & 1 deletion appdb/Tabs/Settings/System Status/SystemStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class SystemStatus: LoadingTableView {
if let cell = tableView.dequeueReusableCell(withIdentifier: "service", for: indexPath) as? SimpleStaticCell {
cell.textLabel?.text = services[indexPath.row].name
if let data = services[indexPath.row].data {
cell.detailTextLabel?.text = String(data)
cell.detailTextLabel?.text = data
cell.accessoryView = nil
} else {
cell.detailTextLabel?.text = ""
Expand Down

0 comments on commit 614feb5

Please sign in to comment.