Skip to content

Commit

Permalink
fix: cannot see watchlist safes when disconected (#3411)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmealy committed Mar 7, 2024
1 parent 2b117d3 commit b29dc9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/welcome/MyAccounts/useAllSafes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ const useAllSafes = (): SafeItems | undefined => {
const undeployedSafes = useAppSelector(selectUndeployedSafes)

return useMemo<SafeItems | undefined>(() => {
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)

Expand Down

1 comment on commit b29dc9c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 79.38% 11125/14015
🔴 Branches 58.38% 2609/4469
🟡 Functions 66.03% 1792/2714
🟢 Lines 80.63% 10021/12428

Test suite run success

1410 tests passing in 195 suites.

Report generated by 🧪jest coverage report action from b29dc9c

Please sign in to comment.