Skip to content

Commit 1884188

Browse files
author
James Felton
committed
Fixed issue with value and forKey being swapped
1 parent 1228637 commit 1884188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/ManagedAppConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class ManagedAppConfig {
8282

8383
public func updateValue(_ value: Any, forKey: String) {
8484
if var myAppConfigFeedback = UserDefaults.standard.dictionary(forKey: kFeedbackKey) {
85-
myAppConfigFeedback[value] = value
85+
myAppConfigFeedback[forKey] = value
8686
UserDefaults.standard.set(myAppConfigFeedback, forKey: kFeedbackKey)
8787
} else {
8888
// there was no dictionary at all, create one and place the key/value pair in it

0 commit comments

Comments
 (0)