Skip to content

Commit 07f7c99

Browse files
committed
Fix a type error, add a type-check script command
This was preventing the build to vercel. I didn't see it on my command line. It would show up with build, but I added a type-check to jog my memory and to help with this, because we don't build here.
1 parent 789e6de commit 07f7c99

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"format": "prettier --write ."
10+
"format": "prettier --write .",
11+
"type-check": "tsc --noEmit"
1112
},
1213
"dependencies": {
1314
"@headlessui/react": "2.2.9",

src/app/sleep-data/chart-constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const options: ApexOptions = {
148148
labels: {
149149
formatter: function (d) {
150150
const date = new Date(d);
151-
return date.getDay() === 0 ? d.substring(5) : "";
151+
return date.getDay() === 0 ? String(d).substring(5) : "";
152152
},
153153
style: {
154154
fontSize: "10px",

0 commit comments

Comments
 (0)