Skip to content

Commit

Permalink
Fixed the bug for mydaos
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Nov 20, 2024
1 parent 4cf6540 commit f17e0ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/explorer/pages/DAOList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ export const DAOList: React.FC = () => {
(formattedDao.symbol && formattedDao.symbol.toLowerCase().includes(searchText.toLowerCase()))
)
}
return formattedDAOs.filter(dao => dao.votingAddresses.includes(account))
const accountAddress = account || etherlink?.account?.address
return formattedDAOs.filter(dao => dao.votingAddresses.includes(accountAddress))
}

return []
}, [daos, searchText, account])
}, [daos, searchText, account, etherlink?.account?.address])

console.log({ daos, currentDAOs, myDAOs })

Expand Down

0 comments on commit f17e0ed

Please sign in to comment.