ecency / ecency-mobile

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

[Bug Fix] server not changing in dropdown inside settings screen #2813

Closed aliseyalvi closed 5 months ago

aliseyalvi commented 6 months ago

What does this PR?

This PR fixes the issue related to server not changing in dropdown menu when server is tried to change it do not correctly updates the dropdown selection menu Also fixed a small glitch in default server value when default server is tried to change, it initially shows no selection due to this bug

Steps to reproduce

Go to Settings -> Server -> change the server

Issue number

https://discord.com/channels/@me/920267778190086205/1192667255406866563

Screenshots/Video

https://github.com/ecency/ecency-mobile/assets/48380998/0c7d5d98-59b2-4b9d-889c-e67c2d5dcf91

aliseyalvi commented 5 months ago

@noumantahir

  1. added react query for fetching nodes list
  2. updated nodes endpoint
  3. updated local copy of server nodes list as @feruzm suggested here