Display number of available tasks

This commit is contained in:
notmd
2023-01-31 22:00:14 +07:00
parent 8198c10a46
commit f569c6d12b
3 changed files with 43 additions and 22 deletions
+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 }>;