mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
💭 fix: Message Labels and Typing Issues (#3602)
* 💭 fix: message labels due to typing issues
* feat: Fix empty message text in MessageRender component
This commit is contained in:
parent
1ff4841603
commit
22c8b6f699
4 changed files with 15 additions and 10 deletions
|
|
@ -73,7 +73,7 @@ export default function useMessageActions(props: TMessageActions) {
|
|||
|
||||
const messageLabel = useMemo(() => {
|
||||
if (message?.isCreatedByUser === true) {
|
||||
return UsernameDisplay ? user?.name != null || user?.username : localize('com_user_message');
|
||||
return UsernameDisplay ? (user?.name ?? '') || user?.username : localize('com_user_message');
|
||||
} else if (assistant) {
|
||||
return assistant.name ?? 'Assistant';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue