Fix JS script not reacting to "i" button
This commit is contained in:
parent
f97d394eb4
commit
b6b2a2daa6
|
@ -190,7 +190,7 @@ const buildingsByCategory = buildingsList.reduce((acc: { [key: string]: DBBuildi
|
|||
const modalBuildings = document.getElementById("building-modal-req-buildings");
|
||||
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', () => {
|
||||
// modal
|
||||
const modalDiv = document.getElementById('building-modal-details');
|
||||
|
|
Loading…
Reference in New Issue