Skip to content

Commit 38a9bae

Browse files
authored
Fix show displayName when sending message. (#5468)
1 parent d67ef74 commit 38a9bae

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/domain/community/contributor/ContributorCardSquare/ContributorCardSquare.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ export const ContributorCardSquare: FC<ContributorCardSquareProps> = props => {
7070
const [sendMessageToOrganization] = useSendMessageToOrganizationMutation();
7171
const [isMessageUserDialogOpen, setIsMessageUserDialogOpen] = useState(false);
7272

73-
const messageReceivers = [
74-
{ id, title: displayName, avatarUri: avatar, city: tooltip?.city, country: tooltip?.country },
75-
];
73+
const messageReceivers = [{ id, displayName, avatarUri: avatar, city: tooltip?.city, country: tooltip?.country }];
7674

7775
const handleSendMessage = useCallback(
7876
async (messageText: string) => {

src/domain/community/user/ContributingUserCard/ContributingUserCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ContributingUserCard = ({ id, ...contributorCardProps }: ContributingUserC
2525
const messageReceivers = [
2626
{
2727
id,
28-
title: contributorCardProps.displayName,
28+
displayName: contributorCardProps.displayName,
2929
avatarUri: contributorCardProps.avatarUri,
3030
city: contributorCardProps.city,
3131
country: contributorCardProps.country,

0 commit comments

Comments
 (0)