Skip to content

Commit cfccf8e

Browse files
committed
don't sort for new discover in spacebar
1 parent d33e46f commit cfccf8e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/webpage/discovery.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ export class Discovery {
105105
});
106106
const json = await res.json();
107107
console.log([...json.guilds], json.guilds);
108-
//@ts-ignore
109-
json.guilds = json.guilds.sort((a, b) => {
110-
return b.member_count - a.member_count;
111-
});
108+
112109
content.innerHTML = "";
113110
const title = document.createElement("h2");
114111
title.textContent = I18n.guild.disoveryTitle(json.guilds.length + "");

0 commit comments

Comments
 (0)