Skip to content
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

[MBL-1298] Use correct project country for currency symbol #2004

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented Mar 27, 2024

📲 What

Use project.country instead of project.stats.currentCountry to determine currency labels, since the latter refers to the user's location, not the projects. It also simplifies PostCampaignCheckoutData to avoid sending project fields as extra params.

👀 See

Jira

Before 🐛 After 🦋
image image

✅ Acceptance criteria

  • Currency symbols are now correct!

@ifosli ifosli self-assigned this Mar 27, 2024
@ifosli ifosli marked this pull request as ready for review March 27, 2024 16:55
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

PostCampaignRewardsSummaryViewData(
rewards: rewards,
selectedQuantities: selectedQuantities,
projectCountry: projectCurrencyCountry,
projectCountry: project.country,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, interesting. What's the difference between project.country and project.stats.currentCountry?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currentCountry is based on the user's location! It's what we use to determine what to convert currency to, for example. It's the opposite of what we want for the actual project's country

@ifosli ifosli merged commit c1e94bf into main Mar 27, 2024
5 checks passed
@ifosli ifosli deleted the latePledgeCurrencySymbol branch March 27, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants