@@ -10,6 +10,7 @@ import {
1010 Subscription ,
1111 UserPaidSubscription ,
1212 AssignedTeamSubscription ,
13+ AssignedTeamSubscription2 ,
1314 CreditDescription ,
1415} from "@gitpod/gitpod-protocol/lib/accounting-protocol" ;
1516import { PlanCoupon , GithubUpgradeURL } from "@gitpod/gitpod-protocol/lib/payment-protocol" ;
@@ -80,16 +81,18 @@ export default function () {
8081 const paidSubscription = activeSubscriptions . find ( ( s ) => UserPaidSubscription . is ( s ) ) ;
8182 const paidPlan = paidSubscription && Plans . getById ( paidSubscription . planId ) ;
8283
83- const assignedTeamSubscriptions = activeSubscriptions . filter ( ( s ) => AssignedTeamSubscription . is ( s ) ) ;
84+ const assignedTeamSubscriptions = activeSubscriptions . filter (
85+ ( s ) => AssignedTeamSubscription . is ( s ) || AssignedTeamSubscription2 . is ( s ) ,
86+ ) ;
8487 const getAssignedTs = ( type : PlanType ) =>
8588 assignedTeamSubscriptions . find ( ( s ) => {
8689 const p = Plans . getById ( s . planId ) ;
8790 return ! ! p && p . type === type ;
8891 } ) ;
89- const assignedProfessionalTs = getAssignedTs ( "professional-new" ) ;
9092 const assignedUnleashedTs = getAssignedTs ( "professional" ) ;
9193 const assignedStudentUnleashedTs = getAssignedTs ( "student" ) ;
92- const assignedTs = assignedProfessionalTs || assignedUnleashedTs || assignedStudentUnleashedTs ;
94+ const assignedProfessionalTs = getAssignedTs ( "professional-new" ) ;
95+ const assignedTs = assignedUnleashedTs || assignedStudentUnleashedTs || assignedProfessionalTs ;
9396
9497 const claimedTeamSubscriptionId = new URL ( window . location . href ) . searchParams . get ( "teamid" ) ;
9598 if (
@@ -674,7 +677,7 @@ export default function () {
674677 ) }
675678 < p className = "text-sm" >
676679 < a
677- className = { `text-blue-light hover:underline" ${ isChargebeeCustomer ? "" : "invisible" } ` }
680+ className = { `gp-link ${ isChargebeeCustomer ? "" : "invisible" } ` }
678681 href = "javascript:void(0)"
679682 onClick = { ( ) => {
680683 ChargebeeClient . getOrCreate ( ) . then ( ( chargebeeClient ) =>
0 commit comments