code4romania / code4romania/vic

[Account settings] "Județ" data does not save, unless "Oraș" data is also filled

Open
#280 0 comments 0 reactions 0 assignees View on GitHub
bug :bug: low-priority mobile-app
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)**
![1](https://github.com/code4romania/vic/assets/139780470/d3f75749-d34f-4e81-b689-ad96f4c10dd9)
![2](https://github.com/code4romania/vic/assets/139780470/209091ca-1caa-4274-84f3-68601c48e7b6)
![3](https://github.com/code4romania/vic/assets/139780470/d920b784-1cc2-4d36-98ac-55f23e630aa2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.