Skip to content

Commit

Permalink
Merge branch 'develop' into feat/advanced-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jul 31, 2024
2 parents 3c87aaf + 057e1dd commit e1e387d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/popular-bottles-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed an issue that caused UI to show an error when the call to get the Business Hour type from settings returned `undefined`.
2 changes: 1 addition & 1 deletion apps/meteor/app/livechat-enterprise/client/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const businessHours: Record<string, IBusinessHourBehavior> = {
Meteor.startup(() => {
Tracker.autorun(async () => {
const bhType = settings.get<string>('Livechat_business_hour_type');
if (await hasLicense('livechat-enterprise')) {
if (bhType && (await hasLicense('livechat-enterprise'))) {
businessHourManager.registerBusinessHourBehavior(businessHours[bhType.toLowerCase()]);
}
});
Expand Down

0 comments on commit e1e387d

Please sign in to comment.