point tier rule allow greater than 0 for min

This commit is contained in:
Timi
2026-08-20 16:09:41 +08:00
parent 8585aa2ae5
commit f119e85798
4 changed files with 28 additions and 6 deletions
+1
View File
@@ -288,6 +288,7 @@ function createTierForm(tier?: PointRuleTier, isLast = false, valueUnit?: EventI
const pointValue = tier?.pointValue;
return {
key: tierKey++,
minText: tier?.min === undefined || tier.min === null ? "0" : formatTierBoundaryValue(tier.min, valueUnit),
maxText: !isLast && tier?.max !== undefined && tier.max !== null ? formatTierBoundaryValue(tier.max, valueUnit) : "",
pointAction: pointValue !== undefined && pointValue < 0 ? "CONSUME" : "EARN",
pointValueText: pointValue === undefined ? "0" : String(Math.abs(pointValue))