fix: type check

This commit is contained in:
fernandomg 2020-07-06 08:11:35 -03:00
parent 0f5d8e80bb
commit 5f413ff5e9
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ const buildOwnersFrom = (
}) })
const buildModulesLinkedList = (modulesPaginated: [Array<string>, string] | null): Array<[string, string]> | null => { const buildModulesLinkedList = (modulesPaginated: [Array<string>, string] | null): Array<[string, string]> | null => {
if (modulesPaginated.length) { if (modulesPaginated?.length) {
const [remoteModules, nextModule] = modulesPaginated const [remoteModules, nextModule] = modulesPaginated
return remoteModules.map((moduleAddress, index, modules) => { return remoteModules.map((moduleAddress, index, modules) => {