fix: update sortMembers to use the new getDisplayName
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-07-19 16:56:14 +02:00
parent cf84ba9d0a
commit 834c9ac343
No known key found for this signature in database

View file

@ -2,6 +2,6 @@ import type { GuildMemberResponse } from "~/types/interfaces";
export default (members: GuildMemberResponse[]): GuildMemberResponse[] => {
return members.sort((a, b) => {
return getDisplayName(a.user, a).localeCompare(getDisplayName(b.user, b))
return getDisplayName(a).localeCompare(getDisplayName(b))
})
}