Skip to content

Commit

Permalink
Fixed #8: Ohh this bugs ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gatti committed Jun 17, 2015
1 parent ad18471 commit 652e619
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GarageOpener/AppSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ class AppSettings {
init() {

let defaults = NSUserDefaults.standardUserDefaults()
self.userID = defaults.stringForKey("userID")!

if let userID = defaults.stringForKey("userID") {
self.userID = userID
}

// Get the Token and Device ID for Particle
var myDict: NSDictionary?
Expand Down

0 comments on commit 652e619

Please sign in to comment.