We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eb3263 commit 3af0bdaCopy full SHA for 3af0bda
1 file changed
frontend/leaderboard.html
@@ -143,19 +143,14 @@ <h1 class="page-title">Leaderboard</h1>
143
tab.classList.add('active');
144
}
145
});
146
-
+
147
+ if (!leaderboardData[activeTab]) {
148
+ return;
149
+ }
150
151
renderLeaderboard(leaderboardData[activeTab]);
152
153
- document.addEventListener('DOMContentLoaded', () => {
- document.querySelectorAll('.tab').forEach(tab => {
- tab.addEventListener('click', () => {
- setActiveTab(tab.dataset.tab);
154
- });
155
156
157
- setActiveTab('overall');
158
159
</script>
160
</body>
161
</html>
0 commit comments