Skip to content

Commit 88e541e

Browse files
more linting errors
1 parent c82952b commit 88e541e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/ui/src/components/PERStackedBarChart

packages/ui/src/components/PERStackedBarChart/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ function PERStackedBarChart({
171171
datalabels: {
172172
display: showDataLabels,
173173
color: (context) => {
174-
const backgroundColor = context.dataset.backgroundColor;
174+
const { backgroundColor } = context.dataset;
175175
// Handle case where backgroundColor is an array
176-
const color = Array.isArray(backgroundColor)
177-
? backgroundColor[context.dataIndex]
176+
const color = Array.isArray(backgroundColor)
177+
? backgroundColor[context.dataIndex]
178178
: backgroundColor as string;
179179
return getContrastColor(color);
180180
},

0 commit comments

Comments
 (0)