lock burg - values is boolean, not 1/0

This commit is contained in:
Azgaar 2022-01-01 19:09:50 +03:00
parent 18acadfd80
commit a55e8d96ff
3 changed files with 8 additions and 8 deletions

View file

@ -197,8 +197,11 @@ function overviewBurgs() {
}
function toggleBurgLockStatus() {
const burg = +this.parentNode.dataset.id;
toggleBurgLock(burg);
const burgId = +this.parentNode.dataset.id;
const burg = pack.burgs[burgId];
burg.lock = !burg.lock;
if (this.classList.contains("icon-lock")) {
this.classList.remove("icon-lock");
this.classList.add("icon-lock-open");