fix(site): fix chart label depending on interval (#10059)

Close https://github.com/coder/coder/issues/10056
This commit is contained in:
Bruno Quaresma
2023-10-04 17:05:29 -03:00
committed by GitHub
parent 1076d16456
commit a8ed88b22e
@@ -98,7 +98,7 @@ export const ActiveUserChart: FC<ActiveUserChartProps> = ({
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,