Skip to content

Commit

Permalink
Merge pull request #552 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #000 chore: build issue resolved
  • Loading branch information
itsvick authored Dec 30, 2024
2 parents f4b75d6 + 01a5b22 commit b2465f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -994,18 +994,21 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
});

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(/^\//, '');
Expand Down Expand Up @@ -1487,7 +1490,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
value={
block?.courseType === selectedCourseType
? block?.courseType
: null || editSession?.metadata?.courseType
: editSession?.metadata?.courseType
}
disabled={!StateName || !medium || !grade || !board}
>
Expand Down Expand Up @@ -1523,8 +1526,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
value={
block?.subject === selectedSubject
? block?.subject
: null ||
editSession?.metadata?.subject ||
: editSession?.metadata?.subject ||
editSession?.subject
}
disabled={!(StateName && medium && grade && board)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/youthNet/MonthlyRegistrationsChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const MonthlyRegistrationsChart: React.FC = () => {
<Tooltip />
<Bar
dataKey="count"
onClick={(data, index) => 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;
Expand Down

0 comments on commit b2465f6

Please sign in to comment.