diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-15 04:54:06 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-15 04:54:06 +0300 |
commit | 1b1a046b542158df270130711e9ef65e6deca27a (patch) | |
tree | 5caa293348570ca16c8199872bbb6e1e967d3e85 | |
parent | 3ba5941cb5758494090bd30d632d3a08e3cd1cda (diff) | |
download | famcs-kit-1b1a046b542158df270130711e9ef65e6deca27a.tar.gz |
feat: dislay "you" next to your username
-rw-r--r-- | src/components/EventCard/EventCard.tsx | 2 |
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> |