Skip to content

Commit

Permalink
fix(leaderboards): bottom go to page button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Mar 4, 2025
1 parent 853605a commit e4baede
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/ts/event-handlers/leaderboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import { showPopup } from "../modals/simple-modals";

const lb = document.getElementById("pageLeaderboards");

lb?.querySelector(
for (const button of lb?.querySelectorAll(
".jumpButtons button[data-action='goToPage']"
)?.addEventListener("click", () => {
showPopup("lbGoToPage");
});
) ?? []) {
button?.addEventListener("click", () => {
showPopup("lbGoToPage");
});
}

0 comments on commit e4baede

Please sign in to comment.