aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-15 04:54:06 +0300
committereug-vs <eug-vs@keemail.me>2020-11-15 04:54:06 +0300
commit1b1a046b542158df270130711e9ef65e6deca27a (patch)
tree5caa293348570ca16c8199872bbb6e1e967d3e85
parent3ba5941cb5758494090bd30d632d3a08e3cd1cda (diff)
downloadfamcs-kit-1b1a046b542158df270130711e9ef65e6deca27a.tar.gz
feat: dislay "you" next to your username
-rw-r--r--src/components/EventCard/EventCard.tsx2
1 files changed, 1 insertions, 1 deletions
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>