Pricing Page: Fix duplicate Backup product card showing when Jetpack Starter Plan is owned. #76647
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that the Jetpack Starter plan has been added as a new purchasable product on the pricing page, There was a bug that was causing duplicate VaultPress Backup product cards to show on the pricing page (when logged-in and the site is in context) when the Jetpack Starter plan is owned. See Screenshot:
.
.
.
This PR fixes this bug whereas when a site has a subscription for the Jetpack Starter plan, The VaultPress Backup product card will only show once, and it will be labeled "Part of the current plan" with a "Manage subscription" CTA button, instead of showing 2 VaultPress Backup product cards.
(See After screenshot:)
Asana Task: 1198218726984184-as-1204541714823225/f
Proposed Changes
JETPACK_BACKUP_T0
to be recognized as an "owned" product on the pricing page.Testing Instructions
git fetch && git checkout add/backupT0-product-to-owned-products-pricing-page && yarn start-jetpack-cloud
http://jetpack.cloud.localhost:3000/pricing/:SITE
(replace:SITE
with the site-slug of the site you have your Jetpack Starter plan on./pricing/:SITE
page.Pre-merge Checklist