Skip to content

Commit

Permalink
fix [#318-#4]: use countyId from profile location when countyId unava…
Browse files Browse the repository at this point in the history
…ilable in form
  • Loading branch information
luciatugui committed Jul 29, 2024
1 parent 310efb2 commit fe18813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/src/screens/AccountData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const AccountData = ({ navigation }: any) => {
label={t('register:create_user.form.city.label')}
error={errors.cityId}
placeholder={t('general:select')}
countyId={watchCountyId || (userProfile?.location?.id as number)}
countyId={watchCountyId || (userProfile?.location?.county.id as number)}
disabled={isUpdatingProfile}
/>
<FormDatePicker
Expand Down

0 comments on commit fe18813

Please sign in to comment.