diff --git a/packages/api/src/utils/notifications.ts b/packages/api/src/utils/notifications.ts index 32b32cc9..e19ac367 100644 --- a/packages/api/src/utils/notifications.ts +++ b/packages/api/src/utils/notifications.ts @@ -53,7 +53,7 @@ export async function sendMentionEmails({ const commenter = await userRepo.getById(db, commenterUserId); if (!commenter) return; - const commenterName = commenter.name ?? commenter.email; + const commenterName = commenter.name?.trim() || commenter.email; // Get mentioned members with full details (filtered by workspace) const membersWithDetails = await memberRepo.getByPublicIdsWithUsers(