diff --git a/src/routes/safe/store/actions/fetchSafe.ts b/src/routes/safe/store/actions/fetchSafe.ts index 2d65639e..b73f5b73 100644 --- a/src/routes/safe/store/actions/fetchSafe.ts +++ b/src/routes/safe/store/actions/fetchSafe.ts @@ -39,8 +39,8 @@ const buildOwnersFrom = ( }) }) -const buildModulesLinkedList = (modules: Array, nextModule: string): Array | null => { - if (modules?.length) { +const buildModulesLinkedList = (modules: string[], nextModule: string): Array | null => { + if (modules.length) { return modules.map((moduleAddress, index, modules) => { const prevModule = modules[index + 1] return [moduleAddress, prevModule !== undefined ? prevModule : nextModule]