Merge pull request #2311 from appwrite/fix-update-totalAmount-calculation-use-currentAggregation

fix: Update totalAmount calculation to use currentAggregation
This commit is contained in:
Matej Bačo
2025-09-02 15:13:57 +02:00
committed by GitHub
@@ -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,