Skip to content

Commit 0795ef0

Browse files
nelsonlaidevCopilot
andcommitted
refactor: fix type errors
Co-authored-by: Copilot <copilot@github.com>
1 parent 76a8010 commit 0795ef0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/admin/admin-trend-chart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export function TrendsChart() {
5555
<ChartTooltip
5656
content={
5757
<ChartTooltipContent
58-
labelFormatter={(label: string) => {
59-
const date = new Date(label)
58+
labelFormatter={(label) => {
59+
const date = new Date(label as string | number)
6060

6161
return date.toLocaleDateString(locale, {
6262
month: 'long',

0 commit comments

Comments
 (0)