From 1b1a046b542158df270130711e9ef65e6deca27a Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 15 Nov 2020 04:54:06 +0300
Subject: feat: dislay "you" next to your username

---
 src/components/EventCard/EventCard.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/EventCard/EventCard.tsx')

diff --git a/src/components/EventCard/EventCard.tsx b/src/components/EventCard/EventCard.tsx
index 74d8d79..2658fd6 100644
--- a/src/components/EventCard/EventCard.tsx
+++ b/src/components/EventCard/EventCard.tsx
@@ -63,7 +63,7 @@ const EventCard: React.FC<PropTypes> = ({ event, mutate }) => {
           Participants ({participants?.length || 0} / 3)
           <ul>
             {participants?.map(username => (
-              <li> {username} </li>
+              <li> {username} {username === user?.username && <b>(you)</b>} </li>
             ))}
           </ul>
         </div>
-- 
cgit v1.2.3

