Skip to content

Commit

Permalink
fix: update ServiceStatus.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Feb 23, 2024
1 parent e02ca87 commit 337f42d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IVPNClient/Models/ServiceStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct ServiceStatus: Codable {
let upgradeToUrl: String?
let paymentMethod: String?
let capabilities: [String]?
let deviceManagement: Bool
let deviceManagement: Bool?

// MARK: - Initialize -

Expand Down
2 changes: 1 addition & 1 deletion IVPNClient/ViewModels/AccountViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct AccountViewModel {
}

var deviceManagement: Bool {
return serviceStatus.deviceManagement
return serviceStatus.deviceManagement ?? false
}

var deviceName: String? {
Expand Down

0 comments on commit 337f42d

Please sign in to comment.