diff --git a/src/forms/registration-popup/index.jsx b/src/forms/registration-popup/index.jsx index a3852d8..939f183 100644 --- a/src/forms/registration-popup/index.jsx +++ b/src/forms/registration-popup/index.jsx @@ -283,8 +283,8 @@ const RegistrationForm = () => { payload = { ...onboardingComponentContext, ...queryParams, ...payload, }; - payload = snakeCaseObject(payload); payload.totalRegistrationTime = totalRegistrationTime; + payload = snakeCaseObject(payload); dispatch(registerUser(payload)); }; diff --git a/src/forms/registration-popup/tests/RegistrationPopup.test.jsx b/src/forms/registration-popup/tests/RegistrationPopup.test.jsx index 66fa00c..a6d29ae 100644 --- a/src/forms/registration-popup/tests/RegistrationPopup.test.jsx +++ b/src/forms/registration-popup/tests/RegistrationPopup.test.jsx @@ -109,7 +109,7 @@ describe('RegistrationForm Test', () => { marketing_emails_opt_in: true, honor_code: true, terms_of_service: true, - totalRegistrationTime: 0, + total_registration_time: 0, app_name: 'onboarding_component', }; const { container } = render(reduxWrapper()); @@ -144,7 +144,7 @@ describe('RegistrationForm Test', () => { honor_code: true, terms_of_service: true, country: 'US', - totalRegistrationTime: 0, + total_registration_time: 0, app_name: 'onboarding_component', }; const { container } = render(reduxWrapper()); @@ -171,7 +171,7 @@ describe('RegistrationForm Test', () => { email: 'petro @example.com', password: 'password1', honor_code: true, - totalRegistrationTime: 0, + total_registration_time: 0, }; store.dispatch = jest.fn(store.dispatch);