Skip to content

Commit 46a8e18

Browse files
committed
fix passed value
1 parent f063675 commit 46a8e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expandableCalendar/Context/Provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {
114114
const contextValue = useMemo(() => {
115115
return {
116116
date: currentDate,
117-
prevDate: prevDate,
117+
prevDate: prevDate.current,
118118
updateSource: updateSource,
119119
setDate: _setDate,
120120
setDisabled: _setDisabled,

0 commit comments

Comments
 (0)