Make sure the currently selected date is active

This commit is contained in:
Alex van Andel 2021-06-30 02:41:22 +00:00
parent f7f5e2cc17
commit 9fe11ea10d

View file

@ -92,7 +92,7 @@ const DatePicker = ({ weekStart, onDatePicked, workingHours, organizerTimeZone,
</button>
)),
]);
}, [selectedMonth, inviteeTimeZone]);
}, [selectedMonth, inviteeTimeZone, selectedDate]);
return selectedMonth ? (
<div className={"mt-8 sm:mt-0 " + (selectedDate ? "sm:w-1/3 border-r sm:px-4" : "sm:w-1/2 sm:pl-4")}>