Skip to content

Commit

Permalink
update ranking in admin view
Browse files Browse the repository at this point in the history
  • Loading branch information
whynotkimhari committed Oct 25, 2023
1 parent d96ddd2 commit b75eaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pre-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function deleteUser(userID, api) {
}
})
.sort((a, b) => b.point - a.point)
.slice(0, 10)
.slice(0, 15)
.reduce((str, element) => {
if (element.name && element.point) {
return str + `<div class="title-admin">${element.name}: ${element.point} pts <button onclick="deleteUser(${element.id}, '${api}')">X</button></div>`
Expand Down

0 comments on commit b75eaf0

Please sign in to comment.