code4romania / code4romania/vic
[Account settings] "Județ" data does not save, unless "Oraș" data is also filled
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
On the mobile app, in the "Date cont" section of the account settings, if an user tries to introduce or update the "Județ" data, they can only do so if they also select a city in the "Oraș" tab. If they leave the "Oraș" tab blank, then the "Județ" data will not be saved.
**Test environment**
On Mobile, using the Android staging app
**Preconditions**
The user has an account on the Vic mobile platform, and is logged in.
**Steps of Reproduction**
1. Log into the mobile application.
2. In the "Setări cont" tab of the app, click on "Date cont".
3. In the "Județ" section, select a county/ select a different county from the one already selected.
4. Do **not** also select a city in the "Oraș" section.
5. Click on the "Salvează" button.
**Expected Result**
The "Județ" section updates, showing the selected county. The "Oraș" section stays empty.
**Actual Result**
Neither the "Județ" section or the "Oraș" section update after clicking on the save button. If they haven't been filled before, they both remain empty sections. If they had been filled before, they revert to the previous data. For example, if originally "București" had been selected as the county and "Pipera" as the city, and the user tries to update the county to "Arad" and leave the city empty - after clicking on the "Salvează" button, it goes back to "București" and "Pipera".
**Screenshots (attached bellow, in order)**



Contributor guide
Assessment
This issue has not been assessed yet.