Skip to content

Commit

Permalink
Merge pull request #389 from Rushikesh-Sonawane99/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #PS-000 chore: Added language constant
  • Loading branch information
itsvick authored Nov 12, 2024
2 parents 90f8137 + 766911e commit b26c8eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"NO_CENTER_FOUND": "No Center found",
"FILTER_BY": "Filter By",
"ALL": "All",
"ACTIVE": "Active"
"NOW": "Now"
},
"LOGIN_PAGE": {
"USERNAME": "Username",
Expand Down
9 changes: 5 additions & 4 deletions src/pages/attendance-history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ const UserAttendanceHistory = () => {
const attendanceInfo = {
present_students: data.presentCount,
totalcount: data.numberOfCohortMembers,
present_percentage: (
(data.presentCount / data.numberOfCohortMembers) *
100
).toFixed(2),
present_percentage:
data.numberOfCohortMembers === 0
? "0"
: `${((data.presentCount / data.numberOfCohortMembers) * 100).toFixed(2)}`,
};


setAttendanceProgressBarData({
[shortDateFormat(selectedDate)]: attendanceInfo,
Expand Down

0 comments on commit b26c8eb

Please sign in to comment.