mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 13:40:06 +00:00
resolve the resubscribe issue
This commit is contained in:
@@ -220,24 +220,12 @@ export class AccountSubscriptionComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
const currentSubscription = this.subscription.value();
|
||||
const shouldForcePremium =
|
||||
currentSubscription?.status === SubscriptionStatuses.IncompleteExpired ||
|
||||
currentSubscription?.status === SubscriptionStatuses.Canceled;
|
||||
|
||||
const dialogRef = UnifiedUpgradeDialogComponent.open(this.dialogService, {
|
||||
data: {
|
||||
account,
|
||||
...(shouldForcePremium
|
||||
? {
|
||||
initialStep: UnifiedUpgradeDialogStep.Payment,
|
||||
selectedPlan: PersonalSubscriptionPricingTierIds.Premium,
|
||||
redirectOnCompletion: true,
|
||||
}
|
||||
: {
|
||||
planSelectionStepTitleOverride: "upgradeYourPlan",
|
||||
hideContinueWithoutUpgradingButton: true,
|
||||
}),
|
||||
initialStep: UnifiedUpgradeDialogStep.Payment,
|
||||
selectedPlan: PersonalSubscriptionPricingTierIds.Premium,
|
||||
redirectOnCompletion: true,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user