diff --git a/frontend/src/routes/sponsor/register/stepPersonForm.tsx b/frontend/src/routes/sponsor/register/stepPersonForm.tsx index 7de1357d8b545571324e562a3c0297c849ca5a55..c4427e9dfd4a0b0665b0df8e7e89afc5517d44f9 100644 --- a/frontend/src/routes/sponsor/register/stepPersonForm.tsx +++ b/frontend/src/routes/sponsor/register/stepPersonForm.tsx @@ -171,17 +171,14 @@ const StepPersonForm = forwardRef( label={t('common:ou')} onChange={handleOuChange} > - {ous.length > 0 ? ( + {ous.length > 0 && ous .sort(i18n.language === 'en' ? enSort : nbSort) .map((ou) => ( <MenuItem key={ou.id.toString()} value={ou.id}> {i18n.language === 'en' ? ou.en : ou.nb} ({ou.id}) </MenuItem> - )) - ) : ( - <></> - )} + ))} </Select> </FormControl> diff --git a/frontend/src/routes/sponsor/register/stepSummary.tsx b/frontend/src/routes/sponsor/register/stepSummary.tsx index 36bf8c4aa92a0f3a3c90e19198e6013a9fa09b42..9824fc994c9ea3de1646900d16bba1ba4631a312 100644 --- a/frontend/src/routes/sponsor/register/stepSummary.tsx +++ b/frontend/src/routes/sponsor/register/stepSummary.tsx @@ -1,4 +1,3 @@ -import React, { forwardRef } from 'react' import { useTranslation } from 'react-i18next' import { @@ -21,7 +20,7 @@ interface StepSummaryProperties { formData: RegisterFormData } -const StepSummary = forwardRef((props: StepSummaryProperties) => { +function StepSummary(props: StepSummaryProperties) { const { t } = useTranslation(['common']) const { formData } = props const ous = useOus() @@ -134,6 +133,6 @@ const StepSummary = forwardRef((props: StepSummaryProperties) => { </Box> </> ) -}) +} export default StepSummary