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

fix(CostSummary): define applied discount based on cost field #2698

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

guilhermespopolin
Copy link
Contributor

@guilhermespopolin guilhermespopolin commented Jul 6, 2023

Describe your changes

Update helper functions used to provide data to CostSummary so they rely on cost field while identifying if there's some discount being applied to your purchase.

Before

after

After

before

Justify why they are needed

So the Cost summary doesn't look so confusing since it might be some cases where the product you have added into the cart is not covered by the campaign code you've added.

Also going to update the contingency plan by removing these changes after this get's merged.

@guilhermespopolin guilhermespopolin requested a review from a team as a code owner July 6, 2023 10:44
@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hedvig-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 7:23am
onboarding ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 7:23am

@guilhermespopolin
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Copy link
Member

@gustaveen gustaveen left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants