File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/(dashboard)/dashboard/chatbots/[chatbotId]/chat/chatWindow Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,19 @@ export default async function ChatbotPage({ params }: ChatbotSettingsProps) {
45
45
accessDenied = true
46
46
}
47
47
48
- // const plan = await getUserSubscriptionPlan(chatbot.userId)
48
+ const plan = await getUserSubscriptionPlan ( chatbot . userId )
49
49
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
+ }
53
53
54
- // if (chatbot.chatFileAttachementEnabled && plan?.chatFileAttachments === false) {
55
- // chatbot.chatFileAttachementEnabled = false
56
- // }
54
+ if ( chatbot . chatFileAttachementEnabled && plan ?. chatFileAttachments === false ) {
55
+ chatbot . chatFileAttachementEnabled = false
56
+ }
57
57
58
- // if (chatbot.chatbotLogoURL !== '' && plan?.basicCustomization === false) {
59
- // chatbot.chatbotLogoURL = null
60
- // }
58
+ if ( chatbot . chatbotLogoURL !== '' && plan ?. basicCustomization === false ) {
59
+ chatbot . chatbotLogoURL = null
60
+ }
61
61
62
62
if ( accessDenied ) {
63
63
return (
You can’t perform that action at this time.
0 commit comments