* refactor: move web utils to packages * fix: build and lint errors * chore: update drag handle plugin * chore: update table cell type to fix build errors * fix: build errors * chore: sync few changes * fix: build errors * chore: minor fixes related to duplicate assets imports * fix: build errors * chore: minor changes
2 lines
162 B
TypeScript
2 lines
162 B
TypeScript
export const getProgress = (completed: number | undefined, total: number | undefined) =>
|
|
total && total > 0 ? Math.round(((completed ?? 0) / total) * 100) : 0;
|