We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7ee4d7 commit e582aacCopy full SHA for e582aac
client/src/utils.js
@@ -0,0 +1,4 @@
1
+export const calculatePercentage = (value, total) => {
2
+ if (total === 0) return 0;
3
+ return Math.round((value / total) * 100);
4
+};
0 commit comments