Skip to content

Commit 23ae330

Browse files
feat: remove commented code
1 parent 6717e76 commit 23ae330

File tree

1 file changed

+10
-10
lines changed
  • app/(dashboard)/dashboard/chatbots/[chatbotId]/chat/chatWindow

1 file changed

+10
-10
lines changed

app/(dashboard)/dashboard/chatbots/[chatbotId]/chat/chatWindow/page.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ export default async function ChatbotPage({ params }: ChatbotSettingsProps) {
4545
accessDenied = true
4646
}
4747

48-
//const plan = await getUserSubscriptionPlan(chatbot.userId)
48+
const plan = await getUserSubscriptionPlan(chatbot.userId)
4949

50-
//if (chatbot.displayBranding === false && plan?.brandingCustomization === false) {
51-
// chatbot.displayBranding = true
52-
//}
50+
if (chatbot.displayBranding === false && plan?.brandingCustomization === false) {
51+
chatbot.displayBranding = true
52+
}
5353

54-
//if (chatbot.chatFileAttachementEnabled && plan?.chatFileAttachments === false) {
55-
// chatbot.chatFileAttachementEnabled = false
56-
//}
54+
if (chatbot.chatFileAttachementEnabled && plan?.chatFileAttachments === false) {
55+
chatbot.chatFileAttachementEnabled = false
56+
}
5757

58-
//if (chatbot.chatbotLogoURL !== '' && plan?.basicCustomization === false) {
59-
// chatbot.chatbotLogoURL = null
60-
//}
58+
if (chatbot.chatbotLogoURL !== '' && plan?.basicCustomization === false) {
59+
chatbot.chatbotLogoURL = null
60+
}
6161

6262
if (accessDenied) {
6363
return (

0 commit comments

Comments
 (0)