Skip to content

Commit 3dd2540

Browse files
committed
feat: add category description to deal and task details
1 parent cbd3416 commit 3dd2540

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/modules/deals/deal/buildDealDetails.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export function buildDealDetails({
5555
deal.category.workClockTimeRef !== undefined && {
5656
Category: (
5757
<p>
58-
{deal.category.catid} ({deal.category.workClockTimeRef * 10} sec)
58+
{deal.category.catid}{' '}
59+
{deal.category.description.length < 0
60+
? deal.category.description
61+
: ''}{' '}
62+
({deal.category.workClockTimeRef * 10} sec)
5963
</p>
6064
),
6165
}),

src/modules/tasks/task/buildTaskDetails.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ export function buildTaskDetails({ task }: { task: TaskQuery['task'] }) {
5151
task.deal.category.workClockTimeRef !== undefined && {
5252
Category: (
5353
<p>
54-
{task.deal.category.catid} (
55-
{task.deal.category.workClockTimeRef * 10} sec)
54+
{task.deal.category.catid}{' '}
55+
{task.deal.category.description.length < 0
56+
? task.deal.category.description
57+
: ''}{' '}
58+
({task.deal.category.workClockTimeRef * 10} sec)
5659
</p>
5760
),
5861
}),

0 commit comments

Comments
 (0)