Skip to content

Commit

Permalink
🔥 Hotfix: Hide withdrawn candidates (#3699)
Browse files Browse the repository at this point in the history
Hide withdrawn candidates
  • Loading branch information
WRadoslaw authored Oct 14, 2022
1 parent 52d2e55 commit 4559443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/council/types/Election.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export interface Election {

export const asElection = (fields: ElectionRoundFieldsFragment): Election => ({
cycleId: fields.cycleId,
candidates: fields.candidates.map(asElectionCandidate),
candidates: fields.candidates.filter((candidate) => candidate.status !== 'WITHDRAWN').map(asElectionCandidate),
})

1 comment on commit 4559443

@vercel
Copy link

@vercel vercel bot commented on 4559443 Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dao – ./

dao-joystream.vercel.app
dao-git-main-joystream.vercel.app
dao.joystream.org

Please sign in to comment.