mirror of
https://github.com/acid-info/free.technology.git
synced 2025-03-01 09:50:38 +00:00
9 lines
244 B
TypeScript
9 lines
244 B
TypeScript
import { BoardJobs } from '@/components/JobList/JobFilter'
|
|
|
|
export const calculateTotalJobCount = (units: BoardJobs): number => {
|
|
if (!units) {
|
|
return 0
|
|
}
|
|
return Object.keys(units).reduce((sum, unit) => sum + units[unit].length, 0)
|
|
}
|