diff --git a/apps/marginfi-v2-ui/src/components/common/Portfolio/components/asset-card/portfolio-asset-card.tsx b/apps/marginfi-v2-ui/src/components/common/Portfolio/components/asset-card/portfolio-asset-card.tsx index eb69490cdd..db1594e90c 100644 --- a/apps/marginfi-v2-ui/src/components/common/Portfolio/components/asset-card/portfolio-asset-card.tsx +++ b/apps/marginfi-v2-ui/src/components/common/Portfolio/components/asset-card/portfolio-asset-card.tsx @@ -52,7 +52,7 @@ export const PortfolioAssetCard = ({ bank, isInLendingMode, isBorrower = true }: }, [bank]); const [isMovePositionDialogOpen, setIsMovePositionDialogOpen] = React.useState(false); - const postionMovingPossible = React.useMemo(() => marginfiAccounts.length > 1, marginfiAccounts); + const postionMovingPossible = React.useMemo(() => marginfiAccounts.length > 1, [marginfiAccounts.length]); return (