File tree 1 file changed +11
-3
lines changed
packages/studentprogram/src/pages
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export default function CourseList({ footerLinks }) {
36
36
programId : resultData ?. programId ,
37
37
subject : subjectname ,
38
38
} ) ;
39
+ console . log ( data ) ;
39
40
setCoursesList ( data ) ;
40
41
41
42
setLoading ( false ) ;
@@ -98,9 +99,16 @@ export default function CourseList({ footerLinks }) {
98
99
< Stack space = "4" p = "4" mb = "5" >
99
100
{ courseList . length > 0 ? (
100
101
courseList ?. map ( ( item , key ) => {
102
+ console . log ( courseList ) ;
103
+
104
+ const identifierWithoutExtension = item . identifier . replace (
105
+ ".img" ,
106
+ ""
107
+ ) ;
101
108
const isComplete = status . find (
102
- ( subItem ) => item . identifier === subItem ?. contentId
109
+ ( subItem ) => identifierWithoutExtension === subItem ?. contentId
103
110
) ;
111
+ console . log ( isComplete ) ;
104
112
return (
105
113
< CourseCard
106
114
key = { key }
@@ -116,13 +124,13 @@ export default function CourseList({ footerLinks }) {
116
124
? {
117
125
onPress : ( ) =>
118
126
navigate (
119
- `/studentprogram/lessons/${ item ?. identifier } /${ item ?. objectType } `
127
+ `/studentprogram/lessons/${ identifierWithoutExtension } /${ item ?. objectType } `
120
128
) ,
121
129
}
122
130
: {
123
131
onPress : ( ) =>
124
132
navigate (
125
- `/studentprogram/lessons/${ item ?. identifier } /${ item ?. contentType } `
133
+ `/studentprogram/lessons/${ identifierWithoutExtension } /${ item ?. contentType } `
126
134
) ,
127
135
} ) }
128
136
/>
You can’t perform that action at this time.
0 commit comments