hotfix: Fix disabled color overriding heatmap color on disabled days

This commit is contained in:
Miroslav Vasilev 2024-01-13 00:29:07 +02:00
parent 580f55a165
commit 30919f7700

View file

@ -30,6 +30,10 @@ const AvailabilityPickerHour = (props: {
const determineCellColor = (isSelected: boolean, availableNames: String[], isDisabled: boolean) => { const determineCellColor = (isSelected: boolean, availableNames: String[], isDisabled: boolean) => {
if (isDisabled) { if (isDisabled) {
if (availableNames.length > 0) {
return heatMapColorforValue(availableNames.length);
}
return '#222222'; return '#222222';
} }