From b34ae3fa04934616934bd50e9a472e19036ec2fa Mon Sep 17 00:00:00 2001
From: Ashm Walia <ashmwalia@outlook.com>
Date: Fri, 29 Jan 2021 11:03:55 -0800
Subject: Fix

---
 src/components/comments/CommentsContainer.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/components/comments/CommentsContainer.tsx')

diff --git a/src/components/comments/CommentsContainer.tsx b/src/components/comments/CommentsContainer.tsx
index d2f11b96..a0e94828 100644
--- a/src/components/comments/CommentsContainer.tsx
+++ b/src/components/comments/CommentsContainer.tsx
@@ -65,8 +65,9 @@ const CommentsContainer: React.FC<CommentsContainerProps> = ({
           );
           setInitialIndex(index);
         } else {
-          setInitialIndex(commentsList.length - 1);
-          ref.current?.scrollToEnd({animated: true});
+          setTimeout(() => {
+            ref.current?.scrollToEnd({animated: true});
+          }, 500);
         }
       }
     }
-- 
cgit v1.2.3-70-g09d2

