Fix max stack exceeded

pull/30/head
Made Baruna 2024-03-13 15:55:09 +08:00
parent d3e68c22f3
commit d2afb82fdc
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@
const sorted = [];
for (const item of data) {
total += item[1];
sorted.push(...new Array(item[1]).fill(item[0]));
sorted.concat(new Array(item[1]).fill(item[0]));
}
medianWinRateOff[rarity] = (sorted[Math.round(sorted.length / 2)] * 100).toFixed(2);