Skip to content

Commit

Permalink
rebase fixit
Browse files Browse the repository at this point in the history
  • Loading branch information
mludowise-stripe committed Sep 25, 2024
1 parent fbb5262 commit afd0e99
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@ class AppSettings {
defaults.setValue(merchant?.id, forKey: Constants.selectedMerchantKey)
}
}

private extension UserDefaults {
func string(forKey defaultName: String, defaultValue: String = "") -> String {
self.string(forKey: defaultName) ?? defaultValue
}
}

0 comments on commit afd0e99

Please sign in to comment.