Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
songwongtp committed May 26, 2023
1 parent 097865a commit c833cf7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/pages/pools/components/unsupportedSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()) : []
);
}}
>
Expand Down

0 comments on commit c833cf7

Please sign in to comment.