Skip to content

Commit 27b4e86

Browse files
committed
fix: 🐛 linting
1 parent 5a051f6 commit 27b4e86

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

frontend/src/components/forms/country-question.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type {
66
} from "../../api/types/dto";
77
import { Autocomplete, Box, TextField } from "@mui/material";
88
import { 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
)}

frontend/src/components/forms/form.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)