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 authored and GitHub committed 2025-09-02 15:13:57 +02:00
commit 1c0af8d5be
1 file changed
+1 -1
@@ -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,