From a0eafc94d7d3345aaa88a36d2d4df09a007163d8 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 4 Apr 2023 13:37:51 +0530 Subject: [PATCH] fix: Pre-chat message is not showing in campaign (#6821) * Fix pre-chat form header issue * Show pre-message if pre-chat form enabled --- app/javascript/widget/components/PreChat/Form.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/widget/components/PreChat/Form.vue b/app/javascript/widget/components/PreChat/Form.vue index 16a3c4ae0..86211f589 100644 --- a/app/javascript/widget/components/PreChat/Form.vue +++ b/app/javascript/widget/components/PreChat/Form.vue @@ -105,10 +105,13 @@ export default { return this.hasActiveCampaign || this.preChatFormEnabled; }, headerMessage() { + if (this.preChatFormEnabled) { + return this.options.preChatMessage; + } if (this.hasActiveCampaign) { return this.$t('PRE_CHAT_FORM.CAMPAIGN_HEADER'); } - return this.options.preChatMessage; + return ''; }, preChatFields() { return this.preChatFormEnabled ? this.options.preChatFields : [];