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

Rename ContributeAs onChange Prop to onProfileChange #1496

Merged
merged 9 commits into from
Mar 7, 2019
Merged

Conversation

flickz
Copy link
Contributor

@flickz flickz commented Mar 5, 2019

Currently there is a prop name mix up between onChange returned by useForm hook and onChange prop of ContributeAs component causing the error in issue 1788.

I renamed onChange prop of ContributeAs to onProfileChange in this PR.

There was a prop name mix up between `onChange` returned by `useForm` hook and `onChange` prop of `ContributeAs` component
@vercel
Copy link

vercel bot commented Mar 5, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@flickz flickz requested a review from znarf March 5, 2019 22:16
@znarf znarf requested a review from Betree March 6, 2019 07:54
@znarf
Copy link
Member

znarf commented Mar 6, 2019

@flickz Can you double check if there are similar problems in other components migrated to hooks?

@Betree
Copy link
Member

Betree commented Mar 6, 2019

Can we add a cypress test for that? The test should switch between two existing profiles and ensure that the order is made with the selected one.

@flickz
Copy link
Contributor Author

flickz commented Mar 6, 2019

Sure we can

Also updated JSDoc and fixed a crash when there's no `defaultSelectedProfile`
@Betree Betree merged commit c0e9de3 into master Mar 7, 2019
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