Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(web): make backlog due-date labels explicit

Tin5ea45a91cb72
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx
index 74bf9542f..d6704c58e 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx
@@ -445,7 +445,12 @@ function RouteComponent() {
<span>
{t("tasks:backlog.filters.due", {
date: t(
- `tasks:backlog.filters.${filters.dueDate.toLowerCase().replace(/\s+/g, "")}`,
+ filters.dueDate === DUE_DATE_FILTER_VALUES.dueThisWeek
+ ? "tasks:backlog.filters.dueThisWeek"
+ : filters.dueDate ===
+ DUE_DATE_FILTER_VALUES.dueNextWeek
+ ? "tasks:backlog.filters.dueNextWeek"
+ : "tasks:backlog.filters.noDueDate",
{ defaultValue: filters.dueDate },
),
})}