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(EMI-2244): fix price null for express element #15129

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

rquartararo
Copy link
Member

@rquartararo rquartararo commented Jan 29, 2025

The type of this PR is: Fix

This PR solves EMI-2244

Description

Don't return the express element if buyerTotalCents is null and moves spacing so it doesn't look weird if it's not rendered.

@rquartararo rquartararo self-assigned this Jan 29, 2025
Copy link
Member

@starsirius starsirius left a comment

Choose a reason for hiding this comment

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

Let's iterate! 🚀

@@ -6,6 +6,10 @@ import { getENV } from "Utils/getENV"
export const ExpressCheckoutProvider = ({ order }) => {
const { buyerTotalCents } = order

if (!buyerTotalCents) {
return null
}
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this might be the current way of displaying buyer total for both BN and MO order at the payment step.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! 🙌

@rquartararo rquartararo merged commit 25a45df into main Jan 29, 2025
11 checks passed
@rquartararo rquartararo deleted the rquartararo/fix-price-null-express-element branch January 29, 2025 15:58
@artsy-peril artsy-peril bot mentioned this pull request Jan 29, 2025
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