From 51fc965a9051d3cda99947fcaf285094ae81ce13 Mon Sep 17 00:00:00 2001 From: shobhitm23 Date: Thu, 31 Oct 2019 15:29:54 -0400 Subject: [PATCH] changed variable name to postId --- functions/handlers/post.js | 2 +- twistter-frontend/src/pages/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/handlers/post.js b/functions/handlers/post.js index 14c73b9..0054d9b 100644 --- a/functions/handlers/post.js +++ b/functions/handlers/post.js @@ -61,7 +61,7 @@ exports.getAllPosts = (req, res) => { userImage: doc.data().userImage, microBlogTitle: doc.data().microBlogTitle, microBlogTopics: doc.data().microBlogTopics, - id: doc.id, + postId: doc.id, }); }); return res.status(200).json(posts); diff --git a/twistter-frontend/src/pages/user.js b/twistter-frontend/src/pages/user.js index b0b37a8..febb7e0 100644 --- a/twistter-frontend/src/pages/user.js +++ b/twistter-frontend/src/pages/user.js @@ -95,7 +95,7 @@ class user extends Component { let posts = classes.data let recentPostsMarkup = posts ? ( - this.state.posts.map(post => ) + this.state.posts.map(post => ) ) : (

Loading...

); return (