From 93ec3dc5a5ed4d343b78e3ff2f09fa012f1d3fc4 Mon Sep 17 00:00:00 2001
From: Matt Kirby <MattJKirby@outlook.com>
Date: Thu, 16 Mar 2023 12:39:55 +0000
Subject: [PATCH] Fixed likestack logic and styling changes

---
 daily-thought-frontend/src/components/post/AnswerCard.tsx | 2 +-
 daily-thought-frontend/src/components/post/LikeStack.tsx  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daily-thought-frontend/src/components/post/AnswerCard.tsx b/daily-thought-frontend/src/components/post/AnswerCard.tsx
index d55d4760..1d03dfc9 100644
--- a/daily-thought-frontend/src/components/post/AnswerCard.tsx
+++ b/daily-thought-frontend/src/components/post/AnswerCard.tsx
@@ -38,7 +38,7 @@ const AnswerCard: FC<PropsWithChildren<AnswerCardProps>> = ({
               <ChatBubbleLeftIcon className="h-6 w-6" aria-hidden="true"/>
             </button>
           </div>
-          <LikeStack Users={[post.User, post.User, post.User, post.User, post.User]} />
+          <LikeStack Users={[post.User, post.User, post.User, post.User, post.User, post.User]} />
         </div>
       </div>
     
diff --git a/daily-thought-frontend/src/components/post/LikeStack.tsx b/daily-thought-frontend/src/components/post/LikeStack.tsx
index 7656f1dc..5ab25e4e 100644
--- a/daily-thought-frontend/src/components/post/LikeStack.tsx
+++ b/daily-thought-frontend/src/components/post/LikeStack.tsx
@@ -26,7 +26,7 @@ const LikeStack:FC<PropsWithChildren<LikeStackProps>> = ({
           } else if (index === 3) {
             return (
               <div className="inline-block h-6 w-6 rounded-full ring-2 ring-white bg-gray-100 flex items-center justify-center">
-                <p className="text-c-pink text-xs">{`+${Users.length - 3}`}</p>
+                <p className="text-c-pink text-xs">{`+${Users.length - 4}`}</p>
               </div>
             )
           } else {
-- 
GitLab