Merge pull request #465 from rgarmsen2295/prof-img-fix

Fixes issue with site trying to load profile pictures without having profile information
This commit is contained in:
Corey Hulen
2015-08-24 13:09:25 -07:00
+6 -1
View File
@@ -102,7 +102,12 @@ module.exports = React.createClass({
currentUserCss = "current--user";
}
var timestamp = UserStore.getProfile(post.user_id).update_at;
var userProfile = UserStore.getProfile(post.user_id);
var timestamp = UserStore.getCurrentUser().update_at;
if (userProfile) {
timestamp = userProfile.update_at;
}
return (
<div>