mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore(profile): updated api objects; replaced mock data with api results
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export function getCountPercentage(partCount: number, allCount: number, fixedDigits: number) {
|
||||
if (allCount == 0) return 0;
|
||||
|
||||
return ((partCount / allCount) * 100).toFixed(fixedDigits);
|
||||
}
|
||||
Reference in New Issue
Block a user