From 1884188e67bdb49335d3110ace236f5c54342209 Mon Sep 17 00:00:00 2001 From: James Felton Date: Thu, 27 Jul 2017 15:49:45 -0500 Subject: [PATCH] Fixed issue with value and forKey being swapped --- Classes/ManagedAppConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ManagedAppConfig.swift b/Classes/ManagedAppConfig.swift index f30ca6e..45a78c8 100644 --- a/Classes/ManagedAppConfig.swift +++ b/Classes/ManagedAppConfig.swift @@ -82,7 +82,7 @@ public class ManagedAppConfig { public func updateValue(_ value: Any, forKey: String) { if var myAppConfigFeedback = UserDefaults.standard.dictionary(forKey: kFeedbackKey) { - myAppConfigFeedback[value] = value + myAppConfigFeedback[forKey] = value UserDefaults.standard.set(myAppConfigFeedback, forKey: kFeedbackKey) } else { // there was no dictionary at all, create one and place the key/value pair in it