From c2b4586919da0cc23b28d333b0bc5e3f5aecabc2 Mon Sep 17 00:00:00 2001 From: James Kenneth Guidaven Date: Fri, 11 Oct 2024 20:31:54 +0800 Subject: [PATCH] A4A: Do not count a WPCOM dev site as an active license. (#95304) --- client/a8c-for-agencies/hooks/use-wpcom-owned-sites.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/a8c-for-agencies/hooks/use-wpcom-owned-sites.ts b/client/a8c-for-agencies/hooks/use-wpcom-owned-sites.ts index 1948cd2349f98..057ea297df125 100644 --- a/client/a8c-for-agencies/hooks/use-wpcom-owned-sites.ts +++ b/client/a8c-for-agencies/hooks/use-wpcom-owned-sites.ts @@ -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,