diff --git a/woc/leaderboard/main.js b/woc/leaderboard/main.js
index 2f2643c..1e15298 100644
--- a/woc/leaderboard/main.js
+++ b/woc/leaderboard/main.js
@@ -47,7 +47,7 @@ function pageButtons(pages) {
}
if (maxRight > pages) {
maxLeft = pages - (state.window - 1)
-
+
if (maxLeft < 1){
maxLeft = 1
}
@@ -69,8 +69,8 @@ function pageButtons(pages) {
$('.page').click(function() {
scoreboard = ''
window.scroll({
- top: 0,
- left: 0,
+ top: 0,
+ left: 0,
behavior: 'smooth'
});
state.page = Number($(this).val())
@@ -81,8 +81,8 @@ function pageButtons(pages) {
function buildLeaderBoard() {
- Array.prototype.getIndex = function(username) {
- for(const user in this){
+ Array.prototype.getIndex = function(username) {
+ for(const user in this){
if(this[user].user === username) return user
}
};
@@ -118,8 +118,10 @@ function buildLeaderBoard() {