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

A4A Dev Sites: Fix marketplaceType when referralBlogId is missing #94057

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions client/a8c-for-agencies/sections/marketplace/controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import MarketplaceSidebar from '../../components/sidebar-menu/marketplace';
import AssignLicense from './assign-license';
import Checkout from './checkout';
import { MARKETPLACE_TYPE_REFERRAL, MARKETPLACE_TYPE_REGULAR } from './hoc/with-marketplace-type';
import { MARKETPLACE_TYPE_REFERRAL } from './hoc/with-marketplace-type';
import HostingOverview from './hosting-overview';
import { getValidHostingSection } from './lib/hosting';
import { getValidBrand } from './lib/product-brand';
Expand Down Expand Up @@ -98,9 +98,7 @@ export const checkoutContext: Callback = ( context, next ) => {
<PageViewTracker title="Marketplace > Checkout" path={ context.path } />
<Checkout
referralBlogId={ referralBlogId }
defaultMarketplaceType={
referralBlogId ? MARKETPLACE_TYPE_REFERRAL : MARKETPLACE_TYPE_REGULAR
}
defaultMarketplaceType={ referralBlogId ? MARKETPLACE_TYPE_REFERRAL : undefined }
phcp marked this conversation as resolved.
Show resolved Hide resolved
/>
</>
);
Expand Down
Loading