spec cleanup

This commit is contained in:
Muhsin Keloth
2024-03-15 00:26:07 +05:30
parent 11ae25535a
commit 5343b3f8ae
3 changed files with 142 additions and 300 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ export default {
const { workingHoursEnabled } = this.channelConfig;
const nextAvailabilityMessage = getNextAvailabilityMessage(
this.channelConfig.workingHours,
new Date()
new Date(),
this.channelConfig.timezone
);
if (workingHoursEnabled) {
return this.isOnline ? this.replyTimeStatus : nextAvailabilityMessage;