refactor: update approval type annotations and improve code formatting

This commit is contained in:
Abhimanyu Saharan
2026-02-11 20:30:14 +05:30
parent af8a263c27
commit 632e7b6487
3 changed files with 14 additions and 9 deletions

View File

@@ -190,7 +190,8 @@ const approvalSummary = (approval: Approval, boardLabel?: string | null) => {
const rows: Array<{ label: string; value: string }> = [];
if (boardLabel) rows.push({ label: "Board", value: boardLabel });
if (taskIds.length === 1) rows.push({ label: "Task", value: taskIds[0] });
if (taskIds.length > 1) rows.push({ label: "Tasks", value: taskIds.join(", ") });
if (taskIds.length > 1)
rows.push({ label: "Tasks", value: taskIds.join(", ") });
if (isAssign) {
rows.push({
label: "Assignee",