Skip to content

Commit 292c0ff

Browse files
author
Achyut Kumar M
committed
change key to hiddenElements
1 parent 1da4ed1 commit 292c0ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GoInfoGame/GoInfoGame/AppQuestManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class AppQuestManager {
177177

178178
print(nodeElements.filter({ $0.id == 1026105 }))
179179

180-
let hiddenElements = UserDefaults.standard.array(forKey: "hiddenElementIds") as? [Int64] ?? []
180+
let hiddenElements = UserDefaults.standard.array(forKey: "hiddenElements") as? [Int64] ?? []
181181

182182
let unitsToBeDisplayed = displayUnits.filter { !hiddenElements.contains($0.id) }
183183
return unitsToBeDisplayed

GoInfoGame/GoInfoGame/UI/Map/MapViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class MapViewModel: ObservableObject {
106106
var hiddenElements = [Int64]()
107107

108108
hiddenElements.append(toBeHidden.id)
109-
UserDefaults.standard.set(hiddenElements, forKey: "hiddenElementIds")
109+
UserDefaults.standard.set(hiddenElements, forKey: "hiddenElements")
110110

111111
}
112112

0 commit comments

Comments
 (0)