Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Donot committed May 24, 2024
1 parent fba5c3d commit 165ae47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ document.addEventListener('DOMContentLoaded', async function() {
const timeB = convertTimeToSeconds(b.timer);
return timeA - timeB;
});
mapLeaderboard.forEach(({ username, time }) => {
mapLeaderboard.forEach(({ username, timer }) => {
const userDiv = document.createElement('div');
userDiv.className = 'user';
userDiv.innerHTML = `<span class="username">${username}</span><span class="time">${time}</span>`;
userDiv.innerHTML = `<span class="username">${username}</span><span class="time">${timer}</span>`;
mapLeaderboardElement.appendChild(userDiv);
});
}
Expand Down

0 comments on commit 165ae47

Please sign in to comment.