From 6d85a7bbf4a0fa954428db7a4f25590191d968a0 Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Thu, 19 Dec 2024 09:45:11 +0100 Subject: [PATCH] fix wrong memo --- src/components/strategies/overview/StrategyContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/strategies/overview/StrategyContent.tsx b/src/components/strategies/overview/StrategyContent.tsx index 1685aa55f..3239f7d70 100644 --- a/src/components/strategies/overview/StrategyContent.tsx +++ b/src/components/strategies/overview/StrategyContent.tsx @@ -70,7 +70,7 @@ export const _StrategyContent: FC = ({ }; 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); });