Skip to content

Commit

Permalink
A4A: Do not count a WPCOM dev site as an active license. (#95304)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkguidaven authored Oct 11, 2024
1 parent 7ff6857 commit c2b4586
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/a8c-for-agencies/hooks/use-wpcom-owned-sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export default function useWPCOMOwnedSites() {
return {
count: isReady
? licenses.filter(
( license ) => license.productId === creatorPlan?.product_id && ! license.referral // We make sure we do not count referrals
( license ) =>
license.productId === creatorPlan?.product_id &&
! license.referral && // We make sure we do not count referrals
! license.meta?.isDevSite // And also a dev site
).length
: 0,
isReady,
Expand Down

0 comments on commit c2b4586

Please sign in to comment.