Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix: proposal descriptions should be pulled from the right governor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem authored Aug 10, 2021
1 parent bd8192c commit 26e334c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/state/governance/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ export function useAllProposalData(): { data: ProposalData[]; loading: boolean }
return useMemo(() => {
const proposalsCallData = proposalsV0.concat(proposalsV1)
const proposalStatesCallData = proposalStatesV0.concat(proposalStatesV1)
const formattedLogs = (formattedLogsV0 ?? []).concat(formattedLogsV1 ?? [])
const formattedLogs = (formattedLogsV0 ?? [])
.slice(0, proposalsV0.length)
.concat((formattedLogsV1 ?? []).slice(0, proposalsV1.length))

if (
proposalsCallData.some((p) => p.loading) ||
Expand Down

0 comments on commit 26e334c

Please sign in to comment.