Display number of available tasks

This commit is contained in:
notmd committed 2023-01-31 22:00:14 +07:00
1 parent 8198c10a46
commit f569c6d12b
3 files changed
+43 -22

No files matched your search

+1 -1
View File
@@ -59,4 +59,4 @@ const filterAvailableTasks = (availableTasks: Partial<AvailableTasks>) =>
Object.entries(availableTasks)
.filter(([, count]) => count > 0)
.sort((a, b) => b[1] - a[1])
.map(([taskType]) => taskType) as TaskType[];
.map(([taskType, count]) => ({ taskType, count })) as Array<{ taskType: TaskType; count: number }>;