mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-05-24 19:35:24 +00:00
don't sort for new discover in spacebar
This commit is contained in:
@@ -105,10 +105,7 @@ export class Discovery {
|
||||
});
|
||||
const json = await res.json();
|
||||
console.log([...json.guilds], json.guilds);
|
||||
//@ts-ignore
|
||||
json.guilds = json.guilds.sort((a, b) => {
|
||||
return b.member_count - a.member_count;
|
||||
});
|
||||
|
||||
content.innerHTML = "";
|
||||
const title = document.createElement("h2");
|
||||
title.textContent = I18n.guild.disoveryTitle(json.guilds.length + "");
|
||||
|
||||
Reference in New Issue
Block a user