Skip to content

Commit

Permalink
fix: added missing ?
Browse files Browse the repository at this point in the history
  • Loading branch information
darkoatanasovski committed Dec 7, 2022
1 parent 36e03bc commit af7b72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/inplayer.account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const updateCustomer: UpdateCustomer = async (values) => {
fullName,
metadata: {
...(values?.consents && { consents: JSON.stringify(values.consents) }),
first_name: values.firstName?.replace(/\s\s+/g, ' ').trim() || '',
first_name: values.firstName?.replace(/\s\s+/g, ' ')?.trim() || '',
surname: values.lastName?.replace(/\s\s+/g, ' ')?.trim() || '',
},
});
Expand Down

0 comments on commit af7b72d

Please sign in to comment.