From 337f42db795763278a0c57e8bb71587d492276d9 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Fri, 23 Feb 2024 13:39:09 +0100 Subject: [PATCH] fix: update ServiceStatus.swift --- IVPNClient/Models/ServiceStatus.swift | 2 +- IVPNClient/ViewModels/AccountViewModel.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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? {