diff --git a/src/components/welcome/MyAccounts/useAllSafes.ts b/src/components/welcome/MyAccounts/useAllSafes.ts index d796790657..14206126ce 100644 --- a/src/components/welcome/MyAccounts/useAllSafes.ts +++ b/src/components/welcome/MyAccounts/useAllSafes.ts @@ -43,13 +43,12 @@ const useAllSafes = (): SafeItems | undefined => { const undeployedSafes = useAppSelector(selectUndeployedSafes) return useMemo(() => { - if (!allOwned) return - const chains = uniq(Object.keys(allAdded).concat(Object.keys(allOwned))) + const chains = uniq(Object.keys(allAdded).concat(Object.keys(allOwned || {}))) return chains.flatMap((chainId) => { if (!configs.some((item) => item.chainId === chainId)) return [] const addedOnChain = Object.keys(allAdded[chainId] || {}) - const ownedOnChain = allOwned[chainId] + const ownedOnChain = (allOwned || {})[chainId] const undeployedOnChain = Object.keys(undeployedSafes[chainId] || {}) const uniqueAddresses = uniq(addedOnChain.concat(ownedOnChain)).filter(Boolean)