From 333408f7b0b8576de55e54ba72a4c7dba68e69e7 Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Thu, 5 Aug 2021 11:56:27 +0530 Subject: [PATCH] Check if comments are enabled for comment intro modal (#6395) --- app/client/src/selectors/commentsSelectors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/src/selectors/commentsSelectors.ts b/app/client/src/selectors/commentsSelectors.ts index 75567f3c45..9a659b5ad7 100644 --- a/app/client/src/selectors/commentsSelectors.ts +++ b/app/client/src/selectors/commentsSelectors.ts @@ -163,4 +163,5 @@ export const visibleCommentThreadSelector = (state: AppState) => state.ui.comments.visibleCommentThreadId; export const isIntroCarouselVisibleSelector = (state: AppState) => - state.ui.comments.isIntroCarouselVisible; + state.ui.comments.isIntroCarouselVisible && + areCommentsEnabledForUserAndApp(state);