diff --git a/app/javascript/dashboard/components/widgets/ChannelItem.vue b/app/javascript/dashboard/components/widgets/ChannelItem.vue index 5ebee6b40..91cde46d5 100644 --- a/app/javascript/dashboard/components/widgets/ChannelItem.vue +++ b/app/javascript/dashboard/components/widgets/ChannelItem.vue @@ -21,6 +21,9 @@ export default { }, }, computed: { + hasFbConfigured() { + return window.chatwootConfig?.fbAppId; + }, isActive() { const { key } = this.channel; if (Object.keys(this.enabledFeatures).length === 0) { @@ -30,7 +33,7 @@ export default { return this.enabledFeatures.channel_website; } if (key === 'facebook') { - return this.enabledFeatures.channel_facebook; + return this.enabledFeatures.channel_facebook && this.hasFbConfigured; } if (key === 'twitter') { return this.enabledFeatures.channel_twitter;