From 8a236bf0dace3043b27f37fcd4f40c713fe800ba Mon Sep 17 00:00:00 2001 From: Rahul Suresh <22114682+icy-meteor@users.noreply.github.com> Date: Tue, 6 Oct 2020 14:19:05 +0000 Subject: [PATCH] fixed lowBatteryNotification if condition --- iGlance/iGlance/iGlance/UserSettings.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iGlance/iGlance/iGlance/UserSettings.swift b/iGlance/iGlance/iGlance/UserSettings.swift index 025aef0..f9c52e1 100644 --- a/iGlance/iGlance/iGlance/UserSettings.swift +++ b/iGlance/iGlance/iGlance/UserSettings.swift @@ -176,7 +176,7 @@ struct BatterySettings: Codable { self.showPercentage = decodedShowPercentage } - if let decodedLowBatteryNotification = try? container.decodeIfPresent(BatteryNotificationSettings.self, forKey: .highBatteryNotification) { + if let decodedLowBatteryNotification = try? container.decodeIfPresent(BatteryNotificationSettings.self, forKey: .lowBatteryNotification) { self.lowBatteryNotification = decodedLowBatteryNotification }