bnstooltips 1.6.4 → 1.6.5
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/build/index.es.js +7 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1308,9 +1308,14 @@ function GetCooldownString(cooldownInMs) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
|
+
function removeDuplicates(stats) {
|
|
1312
|
+
return stats.filter(function (value, index, self) {
|
|
1313
|
+
return index === self.findIndex(function (t) { return t.name === value.name; });
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1311
1316
|
function ItemStats(item) {
|
|
1312
1317
|
return (React__default["default"].createElement("div", { className: "ItemTooltip_stats" },
|
|
1313
|
-
item.stats
|
|
1318
|
+
removeDuplicates(item.stats)
|
|
1314
1319
|
.filter(function (x) { return x.isMainStat; })
|
|
1315
1320
|
.map(function (mainStat, i) {
|
|
1316
1321
|
if (mainStat.name.includes("-min"))
|
|
@@ -1326,7 +1331,7 @@ function ItemStats(item) {
|
|
|
1326
1331
|
"\u00A0",
|
|
1327
1332
|
ReplaceBossAndPvpAp(mainStat.name).replace("Max.", "").trim()));
|
|
1328
1333
|
}),
|
|
1329
|
-
item.stats
|
|
1334
|
+
removeDuplicates(item.stats)
|
|
1330
1335
|
.filter(function (x) { return !x.isMainStat; })
|
|
1331
1336
|
.map(function (subStat, i) {
|
|
1332
1337
|
if (subStat.name.includes("-min"))
|