Skip to content

Commit

Permalink
fix: pool tags on Dashboard page (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Nov 21, 2023
1 parent e2934c9 commit 174bbb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Dashboard: React.FC = () => {
const { data: getPoolData, isLoading: isGetPoolsLoading } = useGetPools({
accountAddress,
});

const pools = useFormatPools({
pools: getPoolData?.pools || [],
searchValue,
Expand All @@ -37,12 +38,12 @@ const Dashboard: React.FC = () => {
content: t('dashboard.allTag'),
},
].concat(
pools.map(pool => ({
(getPoolData?.pools || []).map(pool => ({
id: pool.comptrollerAddress,
content: pool.name,
})),
),
[pools, t],
[getPoolData?.pools, t],
);

return (
Expand Down

0 comments on commit 174bbb2

Please sign in to comment.