[questions][fix] fix landing component

pull/411/head
Jeff Sieu 3 years ago
parent 7c10d47cf5
commit 9e1d4b70b0

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

Loading…
Cancel
Save