Skip to content

Commit 96f639d

Browse files
authored
fix: duplicated voters in voters list (#142)
1 parent aa692b3 commit 96f639d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/proposals/store/proposalsSlice.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,9 @@ export const createProposalsSlice: StoreSlice<
994994
set((state) =>
995995
produce(state, (draft) => {
996996
voters.forEach((votersData) => {
997-
draft.voters[votersData.transactionHash] = votersData;
997+
draft.voters[
998+
`${votersData.transactionHash}-${votersData.proposalId}`
999+
] = votersData;
9981000
});
9991001
}),
10001002
);

0 commit comments

Comments
 (0)