Check if comments are enabled for comment intro modal (#6395)

This commit is contained in:
Rishabh Saxena 2021-08-05 11:56:27 +05:30 committed by GitHub
parent f0bf799b67
commit 333408f7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);