Browse Source

chore(core): Fix bad merge

Michael Bromley 5 years ago
parent
commit
3e98fa4ab1
1 changed files with 4 additions and 3 deletions
  1. 4 3
      packages/core/src/service/services/customer.service.ts

+ 4 - 3
packages/core/src/service/services/customer.service.ts

@@ -183,9 +183,10 @@ export class CustomerService {
         }
         const customer = await this.createOrUpdate({
             emailAddress: input.emailAddress,
-            title: input.title || undefined,
-            firstName: input.firstName || undefined,
-            lastName: input.lastName || undefined,
+            title: input.title || '',
+            firstName: input.firstName || '',
+            lastName: input.lastName || '',
+            phoneNumber: input.phoneNumber || '',
         });
         await this.historyService.createHistoryEntryForCustomer({
             customerId: customer.id,