diff --git a/packages/marko-web-identity-x/config.js b/packages/marko-web-identity-x/config.js index b4503e1af..fb07cd8ee 100644 --- a/packages/marko-web-identity-x/config.js +++ b/packages/marko-web-identity-x/config.js @@ -115,9 +115,9 @@ class IdentityXConfiguration { const questions = this.getAsObject('gtmUserFields'); const userData = { user_id: user.id }; Object.entries(questions).forEach(([key, value]) => { - const select = user.customSelectFieldAnswers.find(({id: qId}) => qId === value) + const select = user.customSelectFieldAnswers.find(({ id }) => id === value) if (select && select.answers.length) userData[key] = select.answers.map(({ label }) => label).join("|"); - const boolean = user.customBooleanFieldAnswers.find(({id: qId}) => qId === value) + const boolean = user.customBooleanFieldAnswers.find(({ id }) => id === value) if (boolean && boolean.hasAnswered) userData[key] = boolean.answer; }); return userData;