Skip to content

Commit

Permalink
fix(#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandure committed Sep 16, 2016
1 parent e676caa commit 224ffc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var agendaVue = new Vue({
self.favorites = json.favs || [];
});
} else {
self.favorites = JSON.parse(localStorage['fav']) || []
self.favorites = (localStorage['fav'] && JSON.parse(localStorage['fav'])) || []
}
},
getTypeColor: getTypeColor,
Expand Down

0 comments on commit 224ffc4

Please sign in to comment.