Skip to content

Commit

Permalink
fix: added dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Nov 1, 2024
1 parent 62fe5a2 commit af348e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const PortfolioAssetCard = ({ bank, isInLendingMode, isBorrower = true }:
}, [bank]);

const [isMovePositionDialogOpen, setIsMovePositionDialogOpen] = React.useState<boolean>(false);
const postionMovingPossible = React.useMemo(() => marginfiAccounts.length > 1, marginfiAccounts);
const postionMovingPossible = React.useMemo(() => marginfiAccounts.length > 1, [marginfiAccounts.length]);
return (
<Accordion type="single" collapsible>
<AccordionItem
Expand Down

0 comments on commit af348e5

Please sign in to comment.