Fix JS script not reacting to "i" button

This commit is contained in:
Aelita4 2024-08-23 19:26:07 +02:00
parent f97d394eb4
commit b6b2a2daa6
Signed by: Aelita4
GPG Key ID: E44490C2025906C1
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ const buildingsByCategory = buildingsList.reduce((acc: { [key: string]: DBBuildi
const modalBuildings = document.getElementById("building-modal-req-buildings"); const modalBuildings = document.getElementById("building-modal-req-buildings");
const modalResearch = document.getElementById("building-modal-req-research"); const modalResearch = document.getElementById("building-modal-req-research");
document.querySelectorAll('.building-card-info-button').forEach((el) => { document.querySelectorAll('.item-card-info-button').forEach((el) => {
el.addEventListener('click', () => { el.addEventListener('click', () => {
// modal // modal
const modalDiv = document.getElementById('building-modal-details'); const modalDiv = document.getElementById('building-modal-details');