{"action":"opened","issue":{"url":"https://api.github.com/repos/n8rzz/atc/issues/20","repository_url":"https://api.github.com/repos/n8rzz/atc","labels_url":"https://api.github.com/repos/n8rzz/atc/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/n8rzz/atc/issues/20/comments","events_url":"https://api.github.com/repos/n8rzz/atc/issues/20/events","html_url":"https://github.com/n8rzz/atc/issues/20","id":181413507,"number":20,"title":"AirportController.ready() throws an undefined error when no airport exists in localStorage","user":{"login":"n8rzz","id":3325985,"avatar_url":"https://avatars.githubusercontent.com/u/3325985?v=3","gravatar_id":"","url":"https://api.github.com/users/n8rzz","html_url":"https://github.com/n8rzz","followers_url":"https://api.github.com/users/n8rzz/followers","following_url":"https://api.github.com/users/n8rzz/following{/other_user}","gists_url":"https://api.github.com/users/n8rzz/gists{/gist_id}","starred_url":"https://api.github.com/users/n8rzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n8rzz/subscriptions","organizations_url":"https://api.github.com/users/n8rzz/orgs","repos_url":"https://api.github.com/users/n8rzz/repos","events_url":"https://api.github.com/users/n8rzz/events{/privacy}","received_events_url":"https://api.github.com/users/n8rzz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/n8rzz/atc/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"n8rzz","id":3325985,"avatar_url":"https://avatars.githubusercontent.com/u/3325985?v=3","gravatar_id":"","url":"https://api.github.com/users/n8rzz","html_url":"https://github.com/n8rzz","followers_url":"https://api.github.com/users/n8rzz/followers","following_url":"https://api.github.com/users/n8rzz/following{/other_user}","gists_url":"https://api.github.com/users/n8rzz/gists{/gist_id}","starred_url":"https://api.github.com/users/n8rzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n8rzz/subscriptions","organizations_url":"https://api.github.com/users/n8rzz/orgs","repos_url":"https://api.github.com/users/n8rzz/repos","events_url":"https://api.github.com/users/n8rzz/events{/privacy}","received_events_url":"https://api.github.com/users/n8rzz/received_events","type":"User","site_admin":false},"assignees":[{"login":"n8rzz","id":3325985,"avatar_url":"https://avatars.githubusercontent.com/u/3325985?v=3","gravatar_id":"","url":"https://api.github.com/users/n8rzz","html_url":"https://github.com/n8rzz","followers_url":"https://api.github.com/users/n8rzz/followers","following_url":"https://api.github.com/users/n8rzz/following{/other_user}","gists_url":"https://api.github.com/users/n8rzz/gists{/gist_id}","starred_url":"https://api.github.com/users/n8rzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n8rzz/subscriptions","organizations_url":"https://api.github.com/users/n8rzz/orgs","repos_url":"https://api.github.com/users/n8rzz/repos","events_url":"https://api.github.com/users/n8rzz/events{/privacy}","received_events_url":"https://api.github.com/users/n8rzz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/n8rzz/atc/milestones/1","html_url":"https://github.com/n8rzz/atc/milestones/v3.0.0","labels_url":"https://api.github.com/repos/n8rzz/atc/milestones/1/labels","id":2037438,"number":1,"title":"v3.0.0","description":"","creator":{"login":"n8rzz","id":3325985,"avatar_url":"https://avatars.githubusercontent.com/u/3325985?v=3","gravatar_id":"","url":"https://api.github.com/users/n8rzz","html_url":"https://github.com/n8rzz","followers_url":"https://api.github.com/users/n8rzz/followers","following_url":"https://api.github.com/users/n8rzz/following{/other_user}","gists_url":"https://api.github.com/users/n8rzz/gists{/gist_id}","starred_url":"https://api.github.com/users/n8rzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n8rzz/subscriptions","organizations_url":"https://api.github.com/users/n8rzz/orgs","repos_url":"https://api.github.com/users/n8rzz/repos","events_url":"https://api.github.com/users/n8rzz/events{/privacy}","received_events_url":"https://api.github.com/users/n8rzz/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":6,"state":"open","created_at":"2016-09-29T11:57:46Z","updated_at":"2016-10-06T13:22:55Z","due_on":"2016-10-31T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-10-06T13:22:55Z","updated_at":"2016-10-06T13:22:55Z","closed_at":null,"body":"When loading the app with a clear localStorage, `AirportController.ready()` fails when trying to `.toLowerCase()` on undefined.\r\n\r\nbasically, replace this:\r\n`localStorage[STORAGE_KEY.ATC_LAST_AIRPORT].toLowerCase()`\r\n\r\nwith this:\r\n`_lowerCase(localStorage[STORAGE_KEY.ATC_LAST_AIRPORT])`\r\n\r\nlodash will only lowerCase it if it exists."}}
{"actor":{"display_login":"n8rzz"}}