You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Not all the flags are updated according to the location settings. It seems like the first one you choose upon account creation is left cached on the user object on the comments and on the profile details page.
To Reproduce
Create an account with any country selected as a Location (i.e. UK)
Upon creation completed, go to your profile and change the location to any other country.
In the preview it will show the correct one.
Click on the preview button
see that the flag on your profile page hasn't changed.
go to any of your previous comments
see that the flag hasn't changed there either
Expected behaviour
all the rendered flags should match the current/latest "Location" setting
Screenshots
Additional context
Could it be related to this? #3131
The text was updated successfully, but these errors were encountered:
Hi @L4ZZA, I took a look at this bug and I think it's at least partially a UX issue. The preview is being displayed in real time when you select a location. You don't have to click the link to see the preview, the link is the preview. It's confusing because the app uses a Username component to show the preview and that component always renders as a link to your profile. So when you click you are taken to your profile which has your old location (since you haven't saved the form yet). I hope that makes sense.
I wasn't able to test whether your flag/location on comments gets updated but I did see that research modules were. I'm not exactly sure what the right behavior is here... keep the location what it was when you commented or update it to your current location.
@mariojsnunes I think the issue is that the Username component always renders as a link to the profile. Should we make a new component that doesn't link for the sake of this preview feature?
Describe the bug
Not all the flags are updated according to the location settings. It seems like the first one you choose upon account creation is left cached on the user object on the comments and on the profile details page.
To Reproduce
Expected behaviour
all the rendered flags should match the current/latest "Location" setting
Screenshots
Additional context
Could it be related to this? #3131
The text was updated successfully, but these errors were encountered: