mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2311 from appwrite/fix-update-totalAmount-calculation-use-currentAggregation
fix: Update totalAmount calculation to use currentAggregation
This commit is contained in:
@@ -316,7 +316,7 @@
|
||||
|
||||
$: billingData = getBillingData(currentPlan, currentAggregation, $isSmallViewport);
|
||||
|
||||
$: totalAmount = Math.max(currentPlan?.price - creditsApplied, 0);
|
||||
$: totalAmount = Math.max(currentAggregation?.amount - creditsApplied, 0);
|
||||
|
||||
$: creditsApplied = Math.min(
|
||||
currentAggregation?.amount ?? currentPlan?.price ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user