Skip to content

Commit

Permalink
A4A and Jetpack Manage: Remove references to 'agency_beta' (#95635)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcanepa authored Oct 24, 2024
1 parent 123a3a8 commit 70de921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/lib/purchases/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ export function isAgencyPartnerType( partnerType: string ) {
return false;
}

return [ 'agency', 'agency_beta', 'a4a_agency' ].includes( partnerType );
return [ 'agency', 'a4a_agency' ].includes( partnerType );
}

export function purchaseType( purchase: Purchase ) {
Expand Down
6 changes: 1 addition & 5 deletions client/state/partner-portal/partner/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ export function hasJetpackPartnerAccess( state: PartnerPortalStore ): boolean {

export function isAgencyUser( state: PartnerPortalStore | IAppState ): boolean {
const currentUser = getCurrentUser( state );
return (
( currentUser?.jetpack_partner_types?.includes( 'agency' ) ||
currentUser?.jetpack_partner_types?.includes( 'agency_beta' ) ) ??
false
);
return currentUser?.jetpack_partner_types?.includes( 'agency' ) ?? false;
}

export function isA4AUser( state: PartnerPortalStore | IAppState ): boolean {
Expand Down

0 comments on commit 70de921

Please sign in to comment.