1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

Resolve the payment display (#11219)

This commit is contained in:
cyprain-okeke
2024-09-24 18:07:29 +01:00
committed by GitHub
parent 0089ae0886
commit e3c75b3c1b

View File

@@ -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() {