Skip to content

Commit

Permalink
feat(sunburst): fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Neil Kistner <neil.kistner@gmail.com>
  • Loading branch information
plouc and wyze committed Apr 23, 2021
1 parent 5b2deb5 commit e059e80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/sunburst/src/hooks.ts
Expand Up @@ -55,7 +55,7 @@ export const useSunburst = <RawDatum>({
// It's important to sort node by depth,
// it ensures that we assign a parent node
// which has already been computed, because parent nodes
// are gonna be computed first
// are going to be computed first
const sortedNodes = sortBy(descendants, 'depth')

return sortedNodes.reduce<ComputedDatum<RawDatum>[]>((acc, descendant) => {
Expand Down Expand Up @@ -109,9 +109,7 @@ export const useSunburst = <RawDatum>({
getChildColor,
])

const arcGenerator = useArcGenerator({
cornerRadius,
})
const arcGenerator = useArcGenerator({ cornerRadius })

return { arcGenerator, nodes }
}
Expand Down

0 comments on commit e059e80

Please sign in to comment.