From b2c16401c80327f333ff61130593b7a2d3d0b640 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Mon, 24 Aug 2015 12:58:04 -0700 Subject: Fixed issue with site tryinng to load profile pictures without having profile information --- web/react/components/post.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx index 53ffeb400..cc2e37fa8 100644 --- a/web/react/components/post.jsx +++ b/web/react/components/post.jsx @@ -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 (
-- cgit v1.2.3-1-g7c22