mirror of
https://github.com/mvvasilev/findtheti.me.git
synced 2025-04-19 13:39:52 +03:00
hotfix: Fix disabled color overriding heatmap color on disabled days
This commit is contained in:
parent
580f55a165
commit
30919f7700
1 changed files with 4 additions and 0 deletions
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue