Skip to content

Commit

Permalink
Length check for serverNickname
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Aug 18, 2024
1 parent e6f0d16 commit a314b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const chatbot = {

return createUserMessage({
content,
name: serverNickname,
name: serverNickname.length > 0 ? serverNickname : undefined,
});
}),
)
Expand Down

0 comments on commit a314b20

Please sign in to comment.