Skip to content

Commit 579b093

Browse files
committed
Apply Kayla improvement
1 parent 44f640b commit 579b093

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

site/src/components/ActiveUserChart/ActiveUserChart.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@ export const ActiveUserChart: FC<ActiveUserChartProps> = ({
4848
}) => {
4949
const theme: Theme = useTheme();
5050

51-
const labels = data.map((val) => {
52-
return dayjs(val.date).format("YYYY-MM-DD");
53-
});
54-
55-
const chartData = data.map((val) => {
56-
return val.amount;
57-
});
51+
const labels = data.map((val) => dayjs(val.date).format("YYYY-MM-DD"));
52+
const chartData = data.map((val) => val.amount);
5853

5954
defaults.font.family = theme.typography.fontFamily as string;
6055
defaults.color = theme.palette.text.secondary;

0 commit comments

Comments
 (0)