Skip to content

Commit

Permalink
fix(Settings/Contributors): sort Asana & Trello by names (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewuu authored Jul 1, 2024
1 parent 594e177 commit 2557c20
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/app/(user)/settings/contributors/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,20 @@ export default async function ContributorsPage(props: ContributorsPageProps) {

const trelloMembers =
organization.ext_trello_board_id && organization.trello_access_token
? await getTrelloBoardMembers({
boardId: organization.ext_trello_board_id,
accessToken: organization.trello_access_token,
})
? (
await getTrelloBoardMembers({
boardId: organization.ext_trello_board_id,
accessToken: organization.trello_access_token,
})
).sort((a, b) => a.fullName.localeCompare(b.fullName))
: null

const asanaUsers = organization.asana_access_token
? await getAsanaUsers({
asanaAccessToken: organization.asana_access_token,
})
? (
await getAsanaUsers({
asanaAccessToken: organization.asana_access_token,
})
).sort((a, b) => a.name.localeCompare(b.name))
: null

if (!ok) {
Expand Down

0 comments on commit 2557c20

Please sign in to comment.