mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Switch to if statement setup
This commit is contained in:
1 parent
8c36c6202a
commit
01b4dd1d94
1 file changed
+4
-10
@@ -190,17 +190,11 @@
|
||||
(team) => team.$id === selectedOrgId
|
||||
) as Organization;
|
||||
|
||||
function getNewBillingPlan(organization: Organization): BillingPlan {
|
||||
if (organization?.billingPlan === BillingPlan.SCALE) {
|
||||
return BillingPlan.SCALE;
|
||||
} else if (campaign?.plan) {
|
||||
return campaign.plan;
|
||||
} else {
|
||||
return BillingPlan.PRO;
|
||||
}
|
||||
$: if (selectedOrg?.billingPlan === BillingPlan.SCALE) {
|
||||
billingPlan = BillingPlan.SCALE;
|
||||
} else if (campaign?.plan) {
|
||||
billingPlan = campaign.plan;
|
||||
}
|
||||
|
||||
$: billingPlan = getNewBillingPlan(selectedOrg);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
Reference in new issue
Block a user