@dcrackel/hematournamentui 1.0.430 → 1.0.431
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/package.json
CHANGED
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
},
|
|
89
89
|
computed: {
|
|
90
90
|
rules() {
|
|
91
|
-
return this.event?.EventRules || [];
|
|
91
|
+
return this.event?.EventRules || this.event?.eventRules || [];
|
|
92
92
|
},
|
|
93
93
|
promotedByRule() {
|
|
94
94
|
const rule = this.rules?.find((n2) => n2.Rules.RuleName === "DEPromoteBy");
|
|
@@ -109,8 +109,7 @@ export default {
|
|
|
109
109
|
const rule = this.rules.find(rule => rule.Rules.RuleName === "DENumOfPromotion");
|
|
110
110
|
if (rule) {
|
|
111
111
|
rule.RuleValue++;
|
|
112
|
-
|
|
113
|
-
this.updatePromotions(); // Centralized logic
|
|
112
|
+
this.updatePromotions();
|
|
114
113
|
}
|
|
115
114
|
return;
|
|
116
115
|
}
|
|
@@ -170,7 +169,7 @@ export default {
|
|
|
170
169
|
updatePromotions(numPromoted = parseInt(this.promoted, 10) || 2) {
|
|
171
170
|
const pools = this.groupFencersByPool(this.poolResults);
|
|
172
171
|
|
|
173
|
-
Object.entries(pools).forEach(([poolFencers]) => {
|
|
172
|
+
Object.entries(pools).forEach(([poolId, poolFencers]) => {
|
|
174
173
|
// Sort by criteria
|
|
175
174
|
this.sortFencersByCriteria(poolFencers);
|
|
176
175
|
// Mark top fencers as promoted
|