fix: Issue with closed all hours (#4521)
fixing the accidentally merged conditions for open all day and closed all day.
This commit is contained in:
@@ -34,10 +34,14 @@ export default {
|
||||
openAllDay,
|
||||
} = this.currentDayAvailability;
|
||||
|
||||
if (openAllDay || closedAllDay) {
|
||||
if (openAllDay) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (closedAllDay) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const { utcOffset } = this.channelConfig;
|
||||
const today = this.getDateWithOffset(utcOffset);
|
||||
const currentHours = today.getHours();
|
||||
|
||||
Reference in New Issue
Block a user