Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ extension UserCollectionEntity {
self.init(context: context)
self.name = userInfo.name
self.islandName = userInfo.islandName
self.islandFruit = userInfo.islandFruit.imageName
self.hemisphere = userInfo.hemisphere.rawValue.capitalized
self.islandFruit = userInfo.islandFruit.rawValue
self.hemisphere = userInfo.hemisphere.rawValue
self.islandReputation = Int16(userInfo.islandReputation)
}

Expand All @@ -23,7 +23,7 @@ extension UserCollectionEntity {
name: self.name ?? "",
islandName: self.islandName ?? "",
islandFruit: Fruit(rawValue: self.islandFruit ?? "") ?? .apple,
hemisphere: Hemisphere(rawValue: self.hemisphere ?? "") ?? .north,
hemisphere: Hemisphere(rawValue: self.hemisphere?.lowercased() ?? "") ?? .north,
islandReputation: Int(self.islandReputation)
)
}
Expand Down