Allow upgrade if current plan does not match the campaign plan

This commit is contained in:
Damodar Lohani
2024-11-10 13:15:30 +05:45
committed by GitHub
parent 7f82ebdc23
commit d24caee823
@@ -108,7 +108,7 @@
);
}
// Upgrade existing org
else if (selectedOrg?.billingPlan === BillingPlan.FREE) {
else if (selectedOrg?.billingPlan === billingPlan) {
org = await sdk.forConsole.billing.updatePlan(
selectedOrg.$id,
billingPlan,