Skip to content

Commit

Permalink
fix wrong memo
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Dec 19, 2024
1 parent e040682 commit 6d85a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/strategies/overview/StrategyContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const _StrategyContent: FC<Props> = ({
};

export const StrategyContent = memo(_StrategyContent, (prev, next) => {
if (prev.isPending && next.isPending) return true;
if (prev.isPending !== next.isPending) return false;
if (prev.layout !== next.layout) return false;
return JSON.stringify(prev.strategies) === JSON.stringify(next.strategies);
});

0 comments on commit 6d85a7b

Please sign in to comment.