diff --git a/apps/portal/src/components/offers/forms/FormCitiesTypeahead.tsx b/apps/portal/src/components/offers/forms/FormCitiesTypeahead.tsx index 8fdd2e60..5233ed74 100644 --- a/apps/portal/src/components/offers/forms/FormCitiesTypeahead.tsx +++ b/apps/portal/src/components/offers/forms/FormCitiesTypeahead.tsx @@ -30,7 +30,7 @@ export default function FormCitiesTypeahead({ names, ...props }: Props) { }} onSelect={(option) => { setValue(names.value, option?.value); - setValue(names.label, option?.value); + setValue(names.label, option?.label); }} /> ); diff --git a/apps/portal/src/components/offers/forms/FormCompaniesTypeahead.tsx b/apps/portal/src/components/offers/forms/FormCompaniesTypeahead.tsx index d236438f..a4369717 100644 --- a/apps/portal/src/components/offers/forms/FormCompaniesTypeahead.tsx +++ b/apps/portal/src/components/offers/forms/FormCompaniesTypeahead.tsx @@ -29,7 +29,7 @@ export default function FormCompaniesTypeahead({ names, ...props }: Props) { }} onSelect={(option) => { setValue(names.value, option?.value); - setValue(names.label, option?.value); + setValue(names.label, option?.label); }} /> ); diff --git a/apps/portal/src/components/offers/offersSubmission/submissionForm/OfferDetailsForm.tsx b/apps/portal/src/components/offers/offersSubmission/submissionForm/OfferDetailsForm.tsx index 07920889..9b24c5e6 100644 --- a/apps/portal/src/components/offers/offersSubmission/submissionForm/OfferDetailsForm.tsx +++ b/apps/portal/src/components/offers/offersSubmission/submissionForm/OfferDetailsForm.tsx @@ -112,7 +112,7 @@ function FullTimeOfferDetailsForm({ errorMessage={offerFields?.cityId?.message} names={{ label: `offers.${index}.cityName`, - value: `offers.${index}.companyId`, + value: `offers.${index}.cityId`, }} required={true} /> @@ -327,7 +327,7 @@ function InternshipOfferDetailsForm({ errorMessage={offerFields?.cityId?.message} names={{ label: `offers.${index}.cityName`, - value: `offers.${index}.companyId`, + value: `offers.${index}.cityId`, }} required={true} />