Skip to content
Browse files

fix if description is null

  • Loading branch information...
1 parent 05bae2a commit 1ac82d787f2dd8c6e4c9ef7b591e2a7eebb1fb95 Jen Fong-Adwent committed
Showing with 1 addition and 2 deletions.
  1. +0 −1 lib/appnet.js
  2. +1 −1 routes/index.js
View
1 lib/appnet.js
@@ -12,7 +12,6 @@ var TIMEOUT = 8000;
var requestGet = function(url, params, callback) {
request.get({ uri: APPNET_URL + url + '?' + qs.stringify(params), timeout: TIMEOUT },
function(err, resp, body) {
-
if (err) {
callback(err);
} else {
View
2 routes/index.js
@@ -99,7 +99,7 @@ module.exports = function(app, client, isLoggedIn, noodle, config) {
var description = '';
// User descriptions don't always exist
- if (user.description.html) {
+ if (user.description && user.description.html) {
description = user.description.html;
}

0 comments on commit 1ac82d7

Please sign in to comment.
Something went wrong with that request. Please try again.