Resolve the payment display (#11219)
This commit is contained in:
parent
0089ae0886
commit
e3c75b3c1b
|
@ -403,11 +403,13 @@ export class ChangePlanDialogComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
get upgradeRequiresPaymentMethod() {
|
get upgradeRequiresPaymentMethod() {
|
||||||
return (
|
const isFreeTier = this.organization?.productTierType === ProductTierType.Free;
|
||||||
this.organization?.productTierType === ProductTierType.Free &&
|
const shouldHideFree = !this.showFree;
|
||||||
!this.showFree &&
|
const hasNoPaymentSource = this.deprecateStripeSourcesAPI
|
||||||
!this.billing?.paymentSource
|
? !this.paymentSource
|
||||||
);
|
: !this.billing?.paymentSource;
|
||||||
|
|
||||||
|
return isFreeTier && shouldHideFree && hasNoPaymentSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
get selectedSecretsManagerPlan() {
|
get selectedSecretsManagerPlan() {
|
||||||
|
|
Loading…
Reference in New Issue