From af348e54d4da2354939ff136c0954716919954af Mon Sep 17 00:00:00 2001 From: Kobe Date: Fri, 1 Nov 2024 08:12:32 +0100 Subject: [PATCH] fix: added dependency array --- .../Portfolio/components/asset-card/portfolio-asset-card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (