Skip to content

Commit

Permalink
Fixed issue with value and forKey being swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
James Felton committed Jul 27, 2017
1 parent 1228637 commit 1884188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ManagedAppConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1884188

Please sign in to comment.