fixed null sectors
This commit is contained in:
parent
e2d8566500
commit
7b1f23073b
3
index.js
3
index.js
@ -198,10 +198,9 @@ function buildComposition(formation) {
|
|||||||
const sector = document.createElement("div")
|
const sector = document.createElement("div")
|
||||||
sector.classList.add("sector")
|
sector.classList.add("sector")
|
||||||
sector.style.setProperty("--weight", weights[letter].toString())
|
sector.style.setProperty("--weight", weights[letter].toString())
|
||||||
sector.innerText = letter
|
sector.innerText = (letter === "null" ? "" : letter)
|
||||||
sectors.appendChild(sector)
|
sectors.appendChild(sector)
|
||||||
})
|
})
|
||||||
console.log(weights)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDisplay(result, idx=0, platform=null) {
|
function updateDisplay(result, idx=0, platform=null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user