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

feat: allow seller to remove and drag a supported jurisdiction while creating a product and make them optional #965

Conversation

albertfolch-redeemeum
Copy link
Contributor

No description provided.

Copy link

cloudflare-workers-and-pages bot commented Dec 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: b525d07
Status: ✅  Deploy successful!
Preview URL: https://a8f8c9f2.interface-a9d.pages.dev
Branch Preview URL: https://964-allow-seller-to-remove-a.interface-a9d.pages.dev

View logs

Copy link
Member

@levalleux-ludo levalleux-ludo left a comment

Choose a reason for hiding this comment

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

I think there is a small issue with precedence.
Otherwise, okay

0)) && (
((values?.shippingInfo?.jurisdiction?.length > 0 &&
values?.shippingInfo?.jurisdiction[0]?.region?.length) ??
0 > 0)) && (
Copy link
Member

Choose a reason for hiding this comment

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

Precedence issue 0 > 0 is always false

src/components/product/Preview.tsx Outdated Show resolved Hide resolved
@albertfolch-redeemeum albertfolch-redeemeum merged commit 770a15a into main Dec 11, 2023
8 checks passed
@albertfolch-redeemeum albertfolch-redeemeum deleted the 964-allow-seller-to-remove-a-supported-jurisdiction-while-creating-a-product-and-check-if-they-can-be-optional branch December 11, 2023 15:18
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.

allow seller to remove a supported jurisdiction while creating a product and check if they can be optional
2 participants