mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1950 from appwrite/fix-estimated-total
fix: don't use newOrgId
This commit is contained in:
@@ -248,8 +248,10 @@
|
||||
billingPlan = getBillingPlan();
|
||||
}
|
||||
|
||||
$: isNewOrg = selectedOrgId && selectedOrgId !== newOrgId;
|
||||
|
||||
$: {
|
||||
if (selectedOrgId) {
|
||||
if (isNewOrg) {
|
||||
(async () => {
|
||||
currentPlan = await sdk.forConsole.billing.getOrganizationPlan(selectedOrgId);
|
||||
})();
|
||||
@@ -363,7 +365,7 @@
|
||||
{collaborators}
|
||||
bind:couponData
|
||||
bind:billingBudget
|
||||
organizationId={selectedOrgId}>
|
||||
organizationId={isNewOrg ? selectedOrgId : null}>
|
||||
{#if campaign?.template === 'review' && (campaign?.cta || campaign?.claimed || campaign?.unclaimed)}
|
||||
<div class="u-margin-block-end-24">
|
||||
<p class="body-text-1 u-bold">{campaign?.cta}</p>
|
||||
|
||||
Reference in New Issue
Block a user