From ecceca9c5984bcdc74495c1a6516f996a1901ee0 Mon Sep 17 00:00:00 2001 From: Yash Rathore Date: Wed, 18 Nov 2020 23:39:21 +0530 Subject: [PATCH] Fixed comment Scroll --- web/src/components/PartProfile/PartProfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/PartProfile/PartProfile.js b/web/src/components/PartProfile/PartProfile.js index de1183c..03397a0 100644 --- a/web/src/components/PartProfile/PartProfile.js +++ b/web/src/components/PartProfile/PartProfile.js @@ -89,10 +89,10 @@ const PartProfile = ({ shouldAnimateHover iconName="chevron-down" onClick={() => { - document.getElementById('section').scrollIntoView() + document.getElementById('comment-section').scrollIntoView() }} > - {userPart.Part.Comment.length} + {userPart.Part.Comment.length} Comments

Comments