Open markrhoughton opened 1 month ago
Didn't catch this on the original PR, but there's a few prints we probably want to remove:
public var experienceValue: Int { get { if let dict = UserDefaults.standard.dictionary(forKey: Constants.kUserApperoDictionary) as? [String: Int] { print(userId) return dict[userId] ?? 0 } else { return 0 } } set { if var dict = UserDefaults.standard.dictionary(forKey: Constants.kUserApperoDictionary) { dict[userId] = newValue print(userId) UserDefaults.standard.setValue(dict, forKey: Constants.kUserApperoDictionary) } else { UserDefaults.standard.setValue([userId : newValue], forKey: Constants.kUserApperoDictionary) print(userId) } } }
Didn't catch this on the original PR, but there's a few prints we probably want to remove: