fixed null sectors

This commit is contained in:
Louis Heredero 2024-04-09 21:24:51 +02:00
parent e2d8566500
commit 7b1f23073b
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -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) {