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:
Pranav Raj S
2022-04-21 14:14:56 +05:30
committed by GitHub
parent f2815a2c00
commit f769471439
2 changed files with 47 additions and 3 deletions

View File

@@ -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();