diff --git a/src/containers/tutor-home-page/general-info-step/GeneralInfoStep.tsx b/src/containers/tutor-home-page/general-info-step/GeneralInfoStep.tsx index 5ae050f1d..22689fd81 100644 --- a/src/containers/tutor-home-page/general-info-step/GeneralInfoStep.tsx +++ b/src/containers/tutor-home-page/general-info-step/GeneralInfoStep.tsx @@ -152,8 +152,11 @@ const GeneralInfoStep = ({ handleGeneralInfo({ data, errors }) }, [data, errors, handleGeneralInfo]) - const onFocusCountry = - !data.country && !countries.length ? void fetchCountries : undefined + const onFocusCountry = async () => { + if (!data.country && !countries.length) { + await fetchCountries() + } + } if (userLoading) { return (