From 01a5b2232bbed7dd61e4d54f5b8448118dba4ba2 Mon Sep 17 00:00:00 2001 From: suvarnakale Date: Mon, 30 Dec 2024 11:26:02 +0530 Subject: [PATCH] Issue #000 chore: build issue resolved --- src/components/PlannedSession.tsx | 20 ++++++++++--------- .../youthNet/MonthlyRegistrationsChart.tsx | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/PlannedSession.tsx b/src/components/PlannedSession.tsx index 09229d62..5054a104 100644 --- a/src/components/PlannedSession.tsx +++ b/src/components/PlannedSession.tsx @@ -994,18 +994,21 @@ const PlannedSession: React.FC = ({ }); if (response?.result?.userDetails) { - const deviceId = response?.result?.userDetails.map((device: any) => device?.deviceId).filter((id: any) => id !== null); + const deviceId = response?.result?.userDetails + .map((device: any) => device?.deviceId) + .filter((id: any) => id !== null); if (deviceId?.length > 0) { - getNotification(deviceId, "LEARNER_NEW_SESSION_ALERT"); + getNotification(deviceId, 'LEARNER_NEW_SESSION_ALERT'); } else { - console.warn("No valid device IDs found. Skipping notification API call."); + console.warn( + 'No valid device IDs found. Skipping notification API call.' + ); } } } catch (error) { - console.error("Error fetching cohort member list:", error); + console.error('Error fetching cohort member list:', error); } - } - + } const windowUrl = window.location.pathname; const cleanedUrl = windowUrl.replace(/^\//, ''); @@ -1487,7 +1490,7 @@ const PlannedSession: React.FC = ({ value={ block?.courseType === selectedCourseType ? block?.courseType - : null || editSession?.metadata?.courseType + : editSession?.metadata?.courseType } disabled={!StateName || !medium || !grade || !board} > @@ -1523,8 +1526,7 @@ const PlannedSession: React.FC = ({ value={ block?.subject === selectedSubject ? block?.subject - : null || - editSession?.metadata?.subject || + : editSession?.metadata?.subject || editSession?.subject } disabled={!(StateName && medium && grade && board)} diff --git a/src/components/youthNet/MonthlyRegistrationsChart.tsx b/src/components/youthNet/MonthlyRegistrationsChart.tsx index fad62a09..68f85fdc 100644 --- a/src/components/youthNet/MonthlyRegistrationsChart.tsx +++ b/src/components/youthNet/MonthlyRegistrationsChart.tsx @@ -63,7 +63,7 @@ const MonthlyRegistrationsChart: React.FC = () => { handleBarClick(data, index)} + onClick={(data: any, index) => handleBarClick(data, index)} radius={[4, 4, 0, 0]} shape={(props: any) => { const { fill, x, y, width, height, index } = props;