Description
Describe the bug
Member Settings Page not displaying new Member Country on UI.
To Reproduce
Steps to reproduce the behavior:
- Sign Up / Registration for a new Member, providing your preferred Country - 'https://www.topcoder.com/login`
- Activate the member account, via the process of email.
- Login with the new member credentials - 'https://www.topcoder.com/login`
- Go to 'https://www.topcoder.com/settings/profile'
- On Tab
Profile
/Basic Info
, the Country dropdown is empty and not displaying your selected Country at the time of registration.
Expected behavior
The Country code provided during Sign Up / Registration should be visible under the member settings page 'https://www.topcoder.com/settings/profile'
Additional context
-
For the logged-in member, the member traits would be having either the
homeCountryCode
orcompetitionCountryCode
. -
On the biases of
homeCountryCode
orcompetitionCountryCode
from members trait, the Country Alpha-3 code would be available and with that, the Lookups API is called to fetch the respective country name to be displayed. -
Keep
homeCountryCode
as primary and in case its empty or null fall back to thecompetitionCountryCode
from the members trait data