Skip to content

Commit

Permalink
Fix Bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandofsky committed Nov 2, 2015
1 parent 72e5cd7 commit 36449e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Class-8/HolidayCheck/HolidayCheck/HolidayPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extension NSUserDefaults:HolidayPreferences {}
extension HolidayPreferences {
var currentChecker:HolidayChecker {
get {
return (self.objectForKey(HolidayPreferencesKeys.Checker.rawValue) as? HolidayChecker) ?? .Christmas
return HolidayChecker(rawValue: self.objectForKey(HolidayPreferencesKeys.Checker.rawValue) as? String ?? HolidayChecker.Christmas.rawValue) ?? .Christmas
}
set (value){
self.setObject(value.rawValue, forKey: HolidayPreferencesKeys.Checker.rawValue)
Expand Down

0 comments on commit 36449e3

Please sign in to comment.