@remit/mailbox-service 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/mailbox-service",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1244,7 +1244,8 @@ export class MessageSyncService {
1244
1244
 
1245
1245
  for (const { localPart, domain, displayName, order } of addressData) {
1246
1246
  const normalizedEmail = `${localPart}@${domain}`.toLowerCase();
1247
- const normalizedCompound = `${displayName.toLowerCase()} ${normalizedEmail}`;
1247
+ const normalizedCompound =
1248
+ `${displayName.toLowerCase()} ${normalizedEmail}`.trim();
1248
1249
 
1249
1250
  const addressId = deriveAddressId(accountConfigId, normalizedEmail);
1250
1251