Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(email): show full sender name when it starts with "The" (#2413)

Evan Hutnik428b0e130818
diff --git a/js/app/packages/block-email/util/name.ts b/js/app/packages/block-email/util/name.ts
index 17106632d3..27c5537ac4 100644
--- a/js/app/packages/block-email/util/name.ts
+++ b/js/app/packages/block-email/util/name.ts
@@ -1,4 +1,5 @@
export function getFirstName(name: string | null | undefined) {
if (!name) return '';
+ if (name.toLowerCase().startsWith('the ')) return name.replace(/,+$/, '');
return name.split(' ')[0].replace(/,+$/, '');
}