Skip to content

Commit 61db8ef

Browse files
authored
Merge pull request #57 from Aar-if/newaltv1
.img green tick issue fix
2 parents a15d192 + 162d064 commit 61db8ef

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

packages/studentprogram/src/pages/courseList.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default function CourseList({ footerLinks }) {
3636
programId: resultData?.programId,
3737
subject: subjectname,
3838
});
39+
console.log(data);
3940
setCoursesList(data);
4041

4142
setLoading(false);
@@ -98,9 +99,16 @@ export default function CourseList({ footerLinks }) {
9899
<Stack space="4" p="4" mb="5">
99100
{courseList.length > 0 ? (
100101
courseList?.map((item, key) => {
102+
console.log(courseList);
103+
104+
const identifierWithoutExtension = item.identifier.replace(
105+
".img",
106+
""
107+
);
101108
const isComplete = status.find(
102-
(subItem) => item.identifier === subItem?.contentId
109+
(subItem) => identifierWithoutExtension === subItem?.contentId
103110
);
111+
console.log(isComplete);
104112
return (
105113
<CourseCard
106114
key={key}
@@ -116,13 +124,13 @@ export default function CourseList({ footerLinks }) {
116124
? {
117125
onPress: () =>
118126
navigate(
119-
`/studentprogram/lessons/${item?.identifier}/${item?.objectType}`
127+
`/studentprogram/lessons/${identifierWithoutExtension}/${item?.objectType}`
120128
),
121129
}
122130
: {
123131
onPress: () =>
124132
navigate(
125-
`/studentprogram/lessons/${item?.identifier}/${item?.contentType}`
133+
`/studentprogram/lessons/${identifierWithoutExtension}/${item?.contentType}`
126134
),
127135
})}
128136
/>

0 commit comments

Comments
 (0)