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

Make radio buttons in interest form work #3695

Merged

Conversation

ivarnakken
Copy link
Member

@ivarnakken ivarnakken commented Mar 19, 2023

Description

They did not work due to type="radio being passed, since this causes, react-final-form to include a checked prop as well.

There was also a seperate bug with the "office in Trondheim" question not working, since the object keys were booleans.

Testing

  • I have thoroughly tested my changes.

I created and edited interest forms. I especially tested the "office in trondheim" question.

They did not work due to `type="radio` being passed, since this causes,
`react-final-form` to include a `checked` prop as well.

There was also a seperate bug with the "office in Trondheim" question
not working, since you the object keys were booleans.
@ivarnakken ivarnakken added review-needed Pull requests that need review bug-fix Pull requests that fix a bug labels Mar 19, 2023
@ivarnakken ivarnakken self-assigned this Mar 19, 2023
@linear
Copy link

linear bot commented Mar 19, 2023

@@ -58,7 +58,7 @@ const mapStateToProps = (state, props) => {
checked: false,
})),
participantRange: null,
companyTypes: null,
companyType: null,
Copy link
Member Author

Choose a reason for hiding this comment

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

This was misspelled, but had no affect on anything. Not sure why it is even needed.

@@ -660,7 +659,7 @@ const CompanyInterestPage = (props: Props) => {

return (
<Content>
<Helmet title="Bedriftsinteresse" />
<Helmet title={isEnglish ? 'Company interest' : 'Bedriftsinteresse'} />
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated, but just nice to have.

Copy link
Contributor

@PeterJFB PeterJFB left a comment

Choose a reason for hiding this comment

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

lgtm 💯

@ivarnakken ivarnakken added priority:high Pull requests that have high priority, and should therefore be prioritized approved Pull requests that have been approved ready-to-merge Pull requests that have been approved and are ready to be merged and removed review-needed Pull requests that need review labels Mar 19, 2023
@ivarnakken ivarnakken merged commit 7a35686 into master Mar 19, 2023
2 checks passed
@ivarnakken ivarnakken deleted the ivarnakken/aba-337-radio-buttons-dont-work-on-interest-form branch March 19, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved bug-fix Pull requests that fix a bug priority:high Pull requests that have high priority, and should therefore be prioritized ready-to-merge Pull requests that have been approved and are ready to be merged
Projects
None yet
2 participants