Skip to content

Commit 1c0af8d

Browse files
authored
Merge pull request #2311 from appwrite/fix-update-totalAmount-calculation-use-currentAggregation
fix: Update totalAmount calculation to use currentAggregation
2 parents 3eff564 + bb61115 commit 1c0af8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/(console)/organization-[organization]/billing/planSummary.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
317317
$: billingData = getBillingData(currentPlan, currentAggregation, $isSmallViewport);
318318
319-
$: totalAmount = Math.max(currentPlan?.price - creditsApplied, 0);
319+
$: totalAmount = Math.max(currentAggregation?.amount - creditsApplied, 0);
320320
321321
$: creditsApplied = Math.min(
322322
currentAggregation?.amount ?? currentPlan?.price ?? 0,

0 commit comments

Comments
 (0)