Skip to content

Commit

Permalink
Merge develop into testnet (#1358)
Browse files Browse the repository at this point in the history
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: homura <[email protected]>
fix: cannot call hooks in useMemo (#1357)
  • Loading branch information
3 people authored Oct 23, 2023
1 parent a13e3be commit ec9e5d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/StatisticsChart/common/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,7 @@ export function SmartChartPage<T>({
}
}, [onFetched, query.data])

const option = useMemo(
() => getEChartOption(dataList, ChartColor, isMobile, isThumbnail),
[dataList, getEChartOption, isMobile, isThumbnail],
)
const option = getEChartOption(dataList, ChartColor, isMobile, isThumbnail)

const content = query.isLoading ? (
<ChartLoading show isThumbnail={isThumbnail} />
Expand Down

0 comments on commit ec9e5d4

Please sign in to comment.