Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add surname to registration form #2313

Merged
merged 3 commits into from
Sep 24, 2024
Merged

Add surname to registration form #2313

merged 3 commits into from
Sep 24, 2024

Conversation

thomshutt
Copy link
Contributor

At the request of Marketing, this PR adds an explicit surname field to the registration form.

@thomshutt thomshutt requested a review from a team as a code owner September 18, 2024 10:08
Copy link

vercel bot commented Sep 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2024 9:36am

@0xcadams
Copy link
Contributor

I think we'll actually need to do something with this value here. Where do they want it to go? Hubspot?

@thomshutt
Copy link
Contributor Author

@0xcadams Yep, Hubspot - from the last time I used this page, I thought all values from the form got passed through to Hubspot by default

@@ -123,6 +124,20 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {
onChange={(e) => setFirstName(e.target.value)}
/>

<TextField
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this already go magically on the request sent to backend? I think it's called lastName on the API https://github.com/livepeer/livepeer-com/blob/4e24f8e656e204089b0d0057428820045c162c89/packages/api/src/controllers/user.ts#L314

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victorges good call, you were right - I updated it (it's lastName in Hubspot too) and tested locally the the last name makes it into the DB and Hubspot

@thomshutt thomshutt merged commit 9ab67ff into master Sep 24, 2024
8 checks passed
@thomshutt thomshutt deleted the surname branch September 24, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants