Skip to content

Commit 5b68b4b

Browse files
committed
[Fix] 'useCallback' missing displayFormat dependency
1 parent 1e77132 commit 5b68b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Datepicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const Datepicker: React.FC<Props> = ({
148148
}
149149
setSecondDate(date);
150150
},
151-
[firstDate]
151+
[firstDate, displayFormat]
152152
);
153153

154154
const previousMonthSecond = useCallback(() => {

0 commit comments

Comments
 (0)