From c833cf75ef8954032c954a892f0e710afb28db9a Mon Sep 17 00:00:00 2001 From: songwongtp <16089160+songwongtp@users.noreply.github.com> Date: Fri, 26 May 2023 15:54:53 +0700 Subject: [PATCH] fix: comment --- src/lib/pages/pools/components/unsupportedSection/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/pages/pools/components/unsupportedSection/index.tsx b/src/lib/pages/pools/components/unsupportedSection/index.tsx index c26529a79..9398ef341 100644 --- a/src/lib/pages/pools/components/unsupportedSection/index.tsx +++ b/src/lib/pages/pools/components/unsupportedSection/index.tsx @@ -183,10 +183,8 @@ export const UnsupportedSection = ({ AmpTrackExpandAll( !expandedIndexes.length ? "expand" : "collapse" ); - setExpandedIndexes( - !expandedIndexes.length - ? Array.from(Array(pageSize).keys()) - : [] + setExpandedIndexes((prev) => + !prev.length ? Array.from(Array(pageSize).keys()) : [] ); }} >