Skip to content

Commit

Permalink
CentrifugeJS: Return empty permissions (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Sep 8, 2023
1 parent 82fa09d commit 82ddcd8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion centrifuge-js/src/modules/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
}
})
)
})
Expand Down

0 comments on commit 82ddcd8

Please sign in to comment.