diff --git a/centrifuge-js/src/modules/pools.ts b/centrifuge-js/src/modules/pools.ts index a06e58b82e..5f9334f2c0 100644 --- a/centrifuge-js/src/modules/pools.ts +++ b/centrifuge-js/src/modules/pools.ts @@ -1215,7 +1215,12 @@ export function getPoolsModule(inst: Centrifuge) { setPoolRoles(account, poolId, roles) } }) - return Array.isArray(maybeArray) ? permissionsByAddressIndex : permissionsByAddressIndex[0] + return Array.isArray(maybeArray) + ? permissionsByAddressIndex + : permissionsByAddressIndex[0] ?? { + pools: {}, + currencies: {}, + } }) ) })