From 2b26eb2bd11e75bf7b36d9e8c5b4dc2401e5a611 Mon Sep 17 00:00:00 2001 From: Tanmay Nalawade <91938829+Tanmay-Nalawade@users.noreply.github.com> Date: Thu, 19 Feb 2026 10:09:40 -0700 Subject: [PATCH] Habit and Daily task counts not displaying for certain filters (#15595) * habits-all fixed * dailies section fixed * to do counter fixed * Remove linting changes and apply logic fix with single quotes * refactor(tasks): simpler badgeCount logic * fix(lint): remove unused import --------- Co-authored-by: Kalista Payne --- .../client/src/components/tasks/column.vue | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/website/client/src/components/tasks/column.vue b/website/client/src/components/tasks/column.vue index 1bf975ba7a..ea06d9072c 100644 --- a/website/client/src/components/tasks/column.vue +++ b/website/client/src/components/tasks/column.vue @@ -348,7 +348,6 @@ import throttle from 'lodash/throttle'; import isEmpty from 'lodash/isEmpty'; import draggable from 'vuedraggable'; -import { shouldDo } from '@/../../common/script/cron'; import inAppRewards from '@/../../common/script/libs/inAppRewards'; import taskDefaults from '@/../../common/script/libs/taskDefaults'; import Task from './task'; @@ -482,25 +481,10 @@ export default { return this.$t('addATask', { type }); }, badgeCount () { - // 0 means the badge will not be shown - // It is shown for the all and due views of dailies - // and for the active and scheduled views of todos. - if (this.type === 'todo' && this.activeFilter.label !== 'complete2') { - return this.taskList.length; - } if (this.type === 'daily') { - if (this.activeFilter.label === 'due') { - return this.taskList.length; - } if (this.activeFilter.label === 'all') { - return this.taskList - .reduce( - (count, t) => (!t.completed - && shouldDo(new Date(), t, this.getUserPreferences) ? count + 1 : count), - 0, - ); - } + if (this.type === 'reward') { + return 0; } - - return 0; + return this.taskList.length; }, }, watch: {