fix: proposal descriptions should be pulled from the right governor (#2176)

This commit is contained in:
Moody Salem 2021-08-10 08:53:22 -05:00 committed by GitHub
parent bd8192c81e
commit 26e334c78f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) ||