From 5f413ff5e957377ec045fb10fa59f61b841d290a Mon Sep 17 00:00:00 2001 From: fernandomg Date: Mon, 6 Jul 2020 08:11:35 -0300 Subject: [PATCH] fix: type check --- src/routes/safe/store/actions/fetchSafe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/safe/store/actions/fetchSafe.ts b/src/routes/safe/store/actions/fetchSafe.ts index b9d695bf..cad88ddd 100644 --- a/src/routes/safe/store/actions/fetchSafe.ts +++ b/src/routes/safe/store/actions/fetchSafe.ts @@ -39,7 +39,7 @@ const buildOwnersFrom = ( }) const buildModulesLinkedList = (modulesPaginated: [Array, string] | null): Array<[string, string]> | null => { - if (modulesPaginated.length) { + if (modulesPaginated?.length) { const [remoteModules, nextModule] = modulesPaginated return remoteModules.map((moduleAddress, index, modules) => {