@stackedapp/utils 1.17.0 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conditions.js +1 -1
- package/package.json +1 -1
package/dist/conditions.js
CHANGED
|
@@ -1155,7 +1155,7 @@ const meetsCompletionConditions = ({ completionConditions, completionTrackers, p
|
|
|
1155
1155
|
// Evaluate contractInteractions completion trackers
|
|
1156
1156
|
if (conditions?.contractInteractions) {
|
|
1157
1157
|
for (const [conditionId, condition] of Object.entries(conditions.contractInteractions)) {
|
|
1158
|
-
const baseAmount = condition.
|
|
1158
|
+
const baseAmount = condition.minAmount || 0;
|
|
1159
1159
|
const trackerGoal = baseAmount * claimMultiplier;
|
|
1160
1160
|
const trackerAmount = completionTrackers?.contractInteractions?.[conditionId] || 0;
|
|
1161
1161
|
const isDisqualify = trackerAmount < trackerGoal;
|