|
|
@ -42,7 +42,7 @@ export default function LandingComponent({
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleChangeLocation = (newLocation: FilterChoice) => {
|
|
|
|
const handleChangeLocation = (newLocation: FilterChoice) => {
|
|
|
|
setCompany(newLocation);
|
|
|
|
setLocation(newLocation);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleChangeType = (newQuestionType: QuestionsQuestionType) => {
|
|
|
|
const handleChangeType = (newQuestionType: QuestionsQuestionType) => {
|
|
|
@ -56,7 +56,7 @@ export default function LandingComponent({
|
|
|
|
}, [defaultCompany, company]);
|
|
|
|
}, [defaultCompany, company]);
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
if (location !== undefined) {
|
|
|
|
if (location === undefined) {
|
|
|
|
setLocation(defaultLocation);
|
|
|
|
setLocation(defaultLocation);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, [defaultLocation, location]);
|
|
|
|
}, [defaultLocation, location]);
|
|
|
|