-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: setting countryCode when updating country #3868
base: master
Are you sure you want to change the base?
Conversation
onearmy-community-platform Run #6279
Run Properties:
|
Project |
onearmy-community-platform
|
Branch Review |
pull/3868
|
Run status |
Failed #6279
|
Run duration | 15m 40s |
Commit |
2069c9e599: fix: setting countryCode when updating country
|
Committer | Ben Furber |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
1
|
Flaky |
1
|
Pending |
0
|
Skipped |
0
|
Passing |
64
|
View all changes introduced in this branch ↗︎ |
Tests for review
src/integration/map.spec.ts • 1 failed test • ci-chrome
Test | Artifacts | |
---|---|---|
[Map] > [Shows expected pins] |
Test Replay
Screenshots
Video
|
src/integration/howto/write.spec.ts • 1 flaky test • ci-chrome
Test | Artifacts | |
---|---|---|
[How To] > [Create a how-to] > [By Authenticated] |
Test Replay
Screenshots
Video
|
Visit the preview URL for this PR (updated for commit 2069c9e): https://onearmy-next--pr3868-fix-user-location-se-fe6p76wg.web.app (expires Sat, 26 Oct 2024 15:19:00 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 6d65e4f8fee2f6ab2da0c1c3b85b8797d66afa59 |
oe nice visuals flags! 💫 |
@@ -218,6 +219,17 @@ export class UserStore extends ModuleStore { | |||
) | |||
} | |||
|
|||
if (location && location.country) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be shortened to location?.country
:)
) | ||
updatedUserProfile.location = { | ||
...location, | ||
country: location.country, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the object is being populated by ...location
, the extra assignment country: location.country
is redundant :)
PR Checklist
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Setting your country (on the infos settings tab) doesn't set/update your flag icon on comments, etc.
What is the new behavior?
Screen.Recording.2024-09-26.at.15.45.04.mov
Also adds emojis and a little preview to show users how their location will be shown: