From f17e0edb34257d5d3ff8b8ee4bfb4c3ba59c215a Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Wed, 20 Nov 2024 17:16:02 +0530 Subject: [PATCH] Fixed the bug for mydaos --- src/modules/explorer/pages/DAOList/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/explorer/pages/DAOList/index.tsx b/src/modules/explorer/pages/DAOList/index.tsx index f007a288..e75f56a3 100644 --- a/src/modules/explorer/pages/DAOList/index.tsx +++ b/src/modules/explorer/pages/DAOList/index.tsx @@ -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 })