diff --git a/IVPNClient/Models/ServiceStatus.swift b/IVPNClient/Models/ServiceStatus.swift index 2397181d5..5015caadc 100644 --- a/IVPNClient/Models/ServiceStatus.swift +++ b/IVPNClient/Models/ServiceStatus.swift @@ -35,7 +35,7 @@ struct ServiceStatus: Codable { let upgradeToUrl: String? let paymentMethod: String? let capabilities: [String]? - let deviceManagement: Bool + let deviceManagement: Bool? // MARK: - Initialize - diff --git a/IVPNClient/ViewModels/AccountViewModel.swift b/IVPNClient/ViewModels/AccountViewModel.swift index 68a65ac44..62bb4afe3 100644 --- a/IVPNClient/ViewModels/AccountViewModel.swift +++ b/IVPNClient/ViewModels/AccountViewModel.swift @@ -51,7 +51,7 @@ struct AccountViewModel { } var deviceManagement: Bool { - return serviceStatus.deviceManagement + return serviceStatus.deviceManagement ?? false } var deviceName: String? {