diff --git a/libs/transaction-handler/src/types/dao.ts b/libs/transaction-handler/src/types/dao.ts index b6b2d560..74284f99 100644 --- a/libs/transaction-handler/src/types/dao.ts +++ b/libs/transaction-handler/src/types/dao.ts @@ -23,10 +23,14 @@ export function castDaoPolicy({ daoId, daoPolicy }) { ) .map(({ accountIds }) => accountIds) .reduce((acc, val) => acc.concat(val), []); - const numberOfMembers = roles - .filter((role) => role.kind === RoleKindType.Group) - .map((group) => group.accountIds) - .flat().length; + const numberOfMembers = [ + ...new Set( + roles + .filter((role) => role.kind === RoleKindType.Group) + .map((group) => group.accountIds) + .flat(), + ), + ].length; return { council,