diff --git a/src/client/chat--rightUsers.jsx b/src/client/chat--rightUsers.jsx index 73f5403..0d1bd8e 100644 --- a/src/client/chat--rightUsers.jsx +++ b/src/client/chat--rightUsers.jsx @@ -53,12 +53,12 @@ export default function ChatRightUsers() { if (!isAnonymous && !isSelf) { if (hasFriendship) { if ('active' === friendship[index].status) { - userActions.push({ - icon: '🚫', - label: 'Unfriend', - onClick: () => dispatch(submitRemoveFriend(id)), - }); if (-1 === favoriteUsers.indexOf(username)) { + userActions.push({ + icon: '🚫', + label: 'Unfriend', + onClick: () => dispatch(submitRemoveFriend(id)), + }); userActions.push({ icon: '❤️', label: 'Favorite', @@ -105,7 +105,7 @@ export default function ChatRightUsers() { onClick: () => dispatch(submitUnblock(id)), }); } - else { + else if (-1 === favoriteUsers.indexOf(username)) { userActions.push({ icon: '☢️', label: 'Block',