Merge pull request #668 from appwrite/fix-credit-under-zero

fix: credit under zero
This commit is contained in:
Damodar Lohani authored and GitHub committed 2023-12-20 12:39:06 +01:00
commit 0d365e25a7
1 file changed
+3 -1
@@ -125,7 +125,9 @@
<p class="text">Estimated total</p>
<p class="text">
${couponData?.status === 'active'
? totalExpences - couponData.credits || 0
? totalExpences - couponData.credits >= 0
? totalExpences - couponData.credits
: 0
: totalExpences}
</p>
</span>