Skip to content

Commit

Permalink
fix: toMultisig transforming functions
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarinas committed May 20, 2024
1 parent 0b4daaa commit d916973
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/services/aragon-sdk/selectors/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ export function toMultisigProposal(
}),
status: computeMultisigProposalStatus(proposal),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
approvals: proposal.approvers.map((approver: any) =>
approvals: proposal.approvals.map((approver: any) =>
approver.id.slice(0, 42)
),
};
Expand Down
2 changes: 1 addition & 1 deletion src/services/aragon-sdk/selectors/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function toMultisigProposalListItem(
title: metadata.title,
summary: metadata.summary,
},
approvals: proposal.approvers.map(approver => approver.id.slice(0, 42)),
approvals: proposal.approvals.map(approval => approval.id.slice(0, 42)),
actions: proposal.actions.map((action: SubgraphAction): DaoAction => {
return {
data: hexToBytes(action.data),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export type SubgraphMultisigProposalBase = SubgraphProposalBase & {
plugin: SubgraphMultisigVotingSettings;
minApprovals: number;
approvalReached: boolean;
approvers: {id: string}[];
approvals: {id: string}[];
};

export type SubgraphMultisigProposalListItem = SubgraphMultisigProposalBase;
Expand Down

0 comments on commit d916973

Please sign in to comment.