Skip to content

Commit

Permalink
Fix marketplaceType when referralBlogId is missing (#94057)
Browse files Browse the repository at this point in the history
  • Loading branch information
phcp authored Aug 30, 2024
1 parent 2e1141a commit f8506fd
Showing 1 changed file with 2 additions and 4 deletions.
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 }
/>
</>
);
Expand Down

0 comments on commit f8506fd

Please sign in to comment.