ecency / ecency-mobile

Ecency Mobile - reimagined social blogging, contribute and get rewarded (for Android and iOS)
https://ecency.com
MIT License
238 stars 70 forks source link

[BUG] Selecting a server from servers list dropdown, will add it to the servers list again #2770

Open muja555 opened 1 year ago

muja555 commented 1 year ago

Describe the bug Selecting a server from the servers list in the settings screen will add the selected servers on top of the servers list while it's already there. keep selecting servers will add to the list.

I debugged the code and a response of servers list return with

To Reproduce Steps to reproduce the behavior: 1- Go to 'settings' 2- Click on 'server' dropdown 3- Choose another server or the same server 4- Go to 'settings' -> 'server' dropdown again See the duplicated servers items

Expected behavior The servers list items should not be duplicated

Screenshots or Video

https://github.com/ecency/ecency-mobile/assets/3640257/20941e44-15bf-4f65-b2c7-412a0c28aeaf

Smartphone (please complete the following information):