Update 6.filter-tasks.md

Simplified declaration of `pendingTasksTitle` removing unnecessary template literal.
This commit is contained in:
Benjamin Payoux
2025-09-23 13:18:38 +02:00
committed by Italo José
parent a103039a26
commit 44ce888dc6

View File

@@ -103,9 +103,7 @@ You should avoid adding zero to your app bar when there are no pending tasks.
TasksCollection.find(hideCompletedFilter).count()
);
const pendingTasksTitle = `${
pendingTasksCount ? ` (${pendingTasksCount})` : ''
}`;
const pendingTasksTitle = pendingTasksCount ? ` (${pendingTasksCount})` : '';
..
<h1>