diff --git a/public/index.html b/public/index.html
index 09643e8..f7dacce 100644
--- a/public/index.html
+++ b/public/index.html
@@ -148,8 +148,8 @@
client.on('leds', (array) => {
const leds = document.querySelectorAll('.led')
for (let i = 0; i < 64; i++) {
- if (array[i] == 1) led.classList.add('on')
- else led.classList.remove('on')
+ if (array[i] == 1) leds[i].classList.add('on')
+ else leds[i].classList.remove('on')
}
})