Skip to content

Commit

Permalink
Exceptions with API 24Rent-yhteiskäyttöautot in apinf.io. #3119
Browse files Browse the repository at this point in the history
  • Loading branch information
krashna-deligence committed Dec 4, 2017
1 parent b0ca3e6 commit f35fc39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apinf_packages/feedback/collection/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ Feedback.helpers({
author () {
// Fetch only the author's username for current feedback
const author = Meteor.users.findOne(this.authorId);

return author.username;
if (author) {
return author.username;
}
return '';
},
currentUserCanEdit () {
// Get current userId
Expand Down

0 comments on commit f35fc39

Please sign in to comment.