Skip to content

Commit

Permalink
πŸ› User default fix (suite name should contain bundle id)
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-sarda committed May 11, 2021
1 parent 2c8d8b6 commit c2311eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ViteMaDose/Helpers/Utils/UserDefaultsUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension UserDefaults {

// MARK: - Setup

static let userDefaultSuiteName = "app.vitemadose"
static let userDefaultSuiteName = "app.vitemadose.userdefaults"
static let encoder = JSONEncoder()

static let shared: UserDefaults = {
Expand Down Expand Up @@ -68,7 +68,7 @@ extension UserDefaults {
var centresListSortOption: CentresListSortOption {
get {
guard let savedIndex = value(forKey: Key.centresListSortOption.rawValue) as? Int else {
return .closest
return .fastest
}
return CentresListSortOption(savedIndex)
}
Expand Down

0 comments on commit c2311eb

Please sign in to comment.