Skip to content

Commit

Permalink
Remove title parsing from description output (#1179)
Browse files Browse the repository at this point in the history
Co-authored-by: Nadav Hollander <nadavhollander@Nadavs-Work-MacBook-Pro.local>
  • Loading branch information
nadavhollander and Nadav Hollander authored Oct 24, 2020
1 parent ddf8834 commit 8975086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/governance/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function useAllProposalData() {
const formattedProposal: ProposalData = {
id: allProposals[i]?.result?.id.toString(),
title: formattedEvents[i].description?.split(/# |\n/g)[1] || 'Untitled',
description: formattedEvents[i].description?.split(/# /)[1] || 'No description.',
description: formattedEvents[i].description || 'No description.',
proposer: allProposals[i]?.result?.proposer,
status: enumerateProposalState(allProposalStates[i]?.result?.[0]) ?? 'Undetermined',
forCount: parseFloat(ethers.utils.formatUnits(allProposals[i]?.result?.forVotes.toString(), 18)),
Expand Down

1 comment on commit 8975086

@vercel
Copy link

@vercel vercel bot commented on 8975086 Oct 24, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.