Skip to content

Commit

Permalink
Merge pull request #102 from suvarnakale/shiksha-2.0
Browse files Browse the repository at this point in the history
Issue #PS-320 undefined issue fixed
  • Loading branch information
itsvick authored May 10, 2024
2 parents 3b9ff06 + 1a20b38 commit 12aec65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ const Dashboard: React.FC<DashboardProps> = () => {
console.log(percentageAttendance);
const currentAttendance = percentageAttendance?.[todayDate];
// let currentPercentAttendance = 'N/A';
const presentPercentage = parseFloat(currentAttendance.present_percentage);
const presentPercentage = parseFloat(currentAttendance?.present_percentage);

// Determine the color based on presentPercentage value
let pathColor; // Default color (green)
Expand Down

0 comments on commit 12aec65

Please sign in to comment.