Skip to content

Commit cd8757f

Browse files
author
Tobias S. Keller
committed
fix: type error
1 parent 94ce9f1 commit cd8757f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/_components/date.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const DateInput: React.FC<{
7777
: defaultValue) ||
7878
new Date();
7979

80-
const dateRef = React.useRef<Date | null>();
80+
const dateRef = React.useRef<Date | null>(null);
8181

8282
const [selectedDate, setSelectedDate] = React.useState<Date | null>(
8383
currentDate || null,

0 commit comments

Comments
 (0)