Clean up debug logs and bump cache version

This commit is contained in:
itsaygea
2026-01-24 09:18:30 -07:00
parent 3253f1f9a7
commit 2ee17846b8
2 changed files with 2 additions and 9 deletions
-7
View File
@@ -619,8 +619,6 @@
const sorted = Object.entries(scores).sort((a, b) => b[1] - a[1]).slice(0, 3);
console.log('updateSuggestions called, sorted:', sorted);
if (sorted.length === 0) {
list.innerHTML = '<p style="color:var(--text-secondary);font-size:13px;">No synergy data available for selected operators. Try adding a main DPS like Laevatain or Yvonne.</p>';
} else {
@@ -646,16 +644,11 @@
`;
}).join('');
console.log('Suggestions HTML set, list.children:', list.children.length);
// Add click listeners to suggestion items using event delegation
list.onclick = function(e) {
console.log('list clicked, target:', e.target);
const item = e.target.closest('.suggestion-item');
console.log('closest item:', item);
if (item) {
const operatorId = item.dataset.operatorId;
console.log('Clicked suggestion:', operatorId);
if (!selectedTeam.includes(operatorId) && selectedTeam.length < 4) {
selectedTeam.push(operatorId);
updateTeamUI();