Skip to content

Commit

Permalink
- Update Artifact Calc to work with recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroGwafa committed Oct 8, 2024
1 parent 2766475 commit 1060b6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,11 @@ window.setTimeout(function () {
localStorage.removeItem("tempMaterials");
}
var mats = JSON.parse(storageEvent.newValue);
JSON.parse(localStorage.archMats).forEach((mat, i) => {
const curMats = JSON.parse(localStorage.archMats);
curMats.forEach((mat, i) => {
mat.goal = parseInt(mats[mat.name]);
});
localStorage.archMats = JSON.stringify(curMats);
buildTable();
}
}
Expand Down

0 comments on commit 1060b6e

Please sign in to comment.