From af7b72de1ca8b8b9a7878c7257f5ec5d34ab77a0 Mon Sep 17 00:00:00 2001 From: Darko Date: Wed, 7 Dec 2022 12:51:35 +0100 Subject: [PATCH] fix: added missing ? --- src/services/inplayer.account.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/inplayer.account.service.ts b/src/services/inplayer.account.service.ts index ae4ff9cfd..4e1a3cfbb 100644 --- a/src/services/inplayer.account.service.ts +++ b/src/services/inplayer.account.service.ts @@ -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() || '', }, });