Skip to content

Commit 980591d

Browse files
authored
Merge pull request #644 from rl404/v0.15.12-alpha
fix: birthday chart using string index
2 parents cfbe5c1 + 696f421 commit 980591d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/(app)/statistics/VtuberCountBirthdayChart.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
.finally(() => (loading = false));
3131
});
3232
33-
const onClick = (x: number, y: number) => {
33+
const onClick = (x: any, y: any) => {
3434
window
3535
.open(
36-
`/vtubers?birthday_day=${x + 1}&start_birthday_month=${y + 1}&end_birthday_month=${y + 1}`,
36+
`/vtubers?birthday_day=${parseInt(x) + 1}&start_birthday_month=${parseInt(y) + 1}&end_birthday_month=${parseInt(y) + 1}`,
3737
'_blank'
3838
)
3939
?.focus();

0 commit comments

Comments
 (0)