File tree Expand file tree Collapse file tree
frontend/src/components/forms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import type {
66} from "../../api/types/dto" ;
77import { Autocomplete , Box , TextField } from "@mui/material" ;
88import { FormField } from "../base/form-field" ;
9- import { useCallback } from "react" ;
109
1110/**
1211 * A list of countries known to tilt.
@@ -38,7 +37,7 @@ export const CountryQuestion = ({
3837 getOptionLabel = { ( option ) => option . country }
3938 fullWidth
4039 autoHighlight
41- onChange = { ( e , v ) => onChange ( v ?. country ?? "" ) }
40+ onChange = { ( _e , v ) => onChange ( v ?. country ?? "" ) }
4241 renderInput = { ( params ) => (
4342 < TextField { ...params } label = { question . description } />
4443 ) }
Original file line number Diff line number Diff line change @@ -112,15 +112,12 @@ export const Form = ({ type }: IFormProps) => {
112112 useState < Nullable < readonly AnswerDTO [ ] > > ( null ) ;
113113
114114 const handleSubmit = useCallback ( ( ) => {
115- {
116- console . log ( state ) ;
117- return setSynchronizedAnswers (
118- [ ...Object . entries ( state ) ] . map < AnswerDTO > ( ( [ questionID , value ] ) => ( {
119- questionID : Number ( questionID ) ,
120- value,
121- } ) ) ,
122- ) ;
123- }
115+ setSynchronizedAnswers (
116+ [ ...Object . entries ( state ) ] . map < AnswerDTO > ( ( [ questionID , value ] ) => ( {
117+ questionID : Number ( questionID ) ,
118+ value,
119+ } ) ) ,
120+ ) ;
124121 } , [ state ] ) ;
125122
126123 const { updateUser } = useLoginContext ( ) ;
You can’t perform that action at this time.
0 commit comments