From a7bb905c9bc1814c6f48e694ab8023798e73131f Mon Sep 17 00:00:00 2001 From: "jackson@near.org" Date: Fri, 26 Jul 2024 13:15:11 -0700 Subject: [PATCH] fix: send array responses to rudderstack as strings --- src/components/research-form-wizard/FormPages/Experience.tsx | 2 +- src/components/research-form-wizard/FormPages/Motivation.tsx | 2 +- src/components/research-form-wizard/FormPages/UserType.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/research-form-wizard/FormPages/Experience.tsx b/src/components/research-form-wizard/FormPages/Experience.tsx index 01abc9ab1..3bf3ce2a1 100644 --- a/src/components/research-form-wizard/FormPages/Experience.tsx +++ b/src/components/research-form-wizard/FormPages/Experience.tsx @@ -65,7 +65,7 @@ export const ExperienceComponent = () => { nextDisabled: !isDisabled, currentStepSubmission: { response_developer_experience: devExperience, response_web3_experience: web3Experience }, }); - }, [devExperience, set]); + }, [devExperience, set, web3Experience]); return ( diff --git a/src/components/research-form-wizard/FormPages/Motivation.tsx b/src/components/research-form-wizard/FormPages/Motivation.tsx index c8a29f169..cb7e2330c 100644 --- a/src/components/research-form-wizard/FormPages/Motivation.tsx +++ b/src/components/research-form-wizard/FormPages/Motivation.tsx @@ -83,7 +83,7 @@ export const Motivation = () => { set({ nextDisabled: !isDisabled, - currentStepSubmission: { response_interests: selectedInterests, other: otherInputEntry }, + currentStepSubmission: { response_interests: selectedInterests.join(), other: otherInputEntry }, }); }, [selectedInterests, otherInputEntry, set]); diff --git a/src/components/research-form-wizard/FormPages/UserType.tsx b/src/components/research-form-wizard/FormPages/UserType.tsx index 0ef60bc33..91f61623e 100644 --- a/src/components/research-form-wizard/FormPages/UserType.tsx +++ b/src/components/research-form-wizard/FormPages/UserType.tsx @@ -79,7 +79,7 @@ const UserTypeComponent = () => { set({ nextDisabled: !isDisabled, - currentStepSubmission: { response_selected_user_types: selectedTypes, other: otherInputEntry }, + currentStepSubmission: { response_selected_user_types: selectedTypes.join(), other: otherInputEntry }, }); }, [selectedTypes, otherInputEntry, set]);