From a8ed88b22e167a6985a0970a77ddbad6e45dc4e4 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Wed, 4 Oct 2023 17:05:29 -0300 Subject: [PATCH] fix(site): fix chart label depending on interval (#10059) Close https://github.com/coder/coder/issues/10056 --- site/src/components/ActiveUserChart/ActiveUserChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/ActiveUserChart/ActiveUserChart.tsx b/site/src/components/ActiveUserChart/ActiveUserChart.tsx index 35b812c6cf..c4471356fc 100644 --- a/site/src/components/ActiveUserChart/ActiveUserChart.tsx +++ b/site/src/components/ActiveUserChart/ActiveUserChart.tsx @@ -98,7 +98,7 @@ export const ActiveUserChart: FC = ({ labels: labels, datasets: [ { - label: "Daily Active Users", + label: `${interval === "day" ? "Daily" : "Weekly"} Active Users`, data: chartData, pointBackgroundColor: theme.palette.info.light, pointBorderColor: theme.palette.info.light,