Skip to content

Commit

Permalink
Fix option title
Browse files Browse the repository at this point in the history
  • Loading branch information
nhd98z committed Oct 12, 2023
1 parent 9241e09 commit 86baf30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/KyberDAO/Vote/ProposalItem/Participants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ export default function Participants({ proposalId }: { proposalId?: number }) {
}
})
}, [proposalInfo])
const options = proposalInfo?.options
const options = proposalInfo?.options.map((option, index) => {
if (!proposalId || !HARDCODED_OPTION_TITLE[proposalId][index]) return option
return HARDCODED_OPTION_TITLE[proposalId][index]
})

// flag to reduce fontsize when contents are too long
const isLongText = useMemo(() => {
Expand Down

0 comments on commit 86baf30

Please sign in to comment.