new feature "Explore Site"

This commit is contained in:
2021-11-15 19:27:10 +01:00
parent e169d4d80b
commit 2fc87ab4d8
9 changed files with 543 additions and 425 deletions

View File

@@ -67,20 +67,6 @@ export const constructAvatarUrl = (hash, size) => {
}
}
export const GetAvgRank = (stats) => {
let count = 0
let fullRank = 0
stats.map(player => {
if (player.rank?.old) {
fullRank += player.rank?.old
count += 1
}
})
return count === 0 ? 0 : Math.floor(fullRank / count)
}
export const sortObjectValue = (obj, direction = 'asc') => {
const sortable = []
for (let key in obj) {