mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: credit under zero
This commit is contained in:
1 parent
b1957cbc80
commit
2adcafa470
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>
|
||||
|
||||
Reference in new issue
Block a user