Skip to content

Commit

Permalink
Issue #PS-320 undefined issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarnakale committed May 10, 2024
1 parent 7d07d24 commit 1a20b38
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 1a20b38

Please sign in to comment.