Skip to content

Commit

Permalink
fix: recent comment is not hiding with correct setting
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Jul 24, 2023
1 parent c94e104 commit 91358ad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,10 @@ export default defineComponent({
}),
recentCommentEnable: computed(() => {
return (
(appStore.themeConfig.plugins.gitalk.enable &&
appStore.themeConfig.plugins.gitalk.recentComment) ||
(!appStore.themeConfig.plugins.gitalk.enable &&
appStore.themeConfig.plugins.valine.enable &&
appStore.themeConfig.plugins.valine.recentComment)
(!!appStore.themeConfig.plugins.gitalk.enable &&
!!appStore.themeConfig.plugins.gitalk.recentComment) ||
(!!appStore.themeConfig.plugins.valine.enable &&
!!appStore.themeConfig.plugins.valine.recentComment)
)
}),
expanderClass,
Expand Down

0 comments on commit 91358ad

Please sign in to comment.