Fix skill_icon accumulating the first symbol (const -> let)

This commit is contained in:
Adam Goldsmith 2021-09-15 15:16:28 -04:00
parent df51724b59
commit 5fa9bf0cdd

View File

@ -167,7 +167,7 @@ function build_card(component) {
Wild: 0,
};
for (let i = 1; i<=6; i++) {
const skill_icon = component.settings.get('Skill' + i);
let skill_icon = component.settings.get('Skill' + i);
if (skill_icon in skills) {
skills[skill_icon] += 1;
}