Skip to content

Commit

Permalink
Merge pull request #56 from Aar-if/newaltv1
Browse files Browse the repository at this point in the history
.img fix
  • Loading branch information
Aar-if authored Apr 2, 2024
2 parents cb6d9b4 + 551d24d commit a15d192
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/studentprogram/src/pages/lessonList.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ export default function LessonList({ footerLinks }) {
timeSpentString.slice(0, -3) + "." + timeSpentString.slice(-3);
const timeSpentInt = parseFloat(formattedNumber);
const inSeconds = Math.ceil(timeSpentInt);
const trimmedid = id.replace(".img", "");
data = {
courseId: id,
moduleId: id,
lessonId: id,
courseId: trimmedid,
moduleId: trimmedid,
lessonId: trimmedid,
status: "completed",
contentType: localStorage.getItem("contentType"),
timeSpent: inSeconds,
Expand All @@ -187,8 +188,9 @@ export default function LessonList({ footerLinks }) {
timeSpentString.slice(0, -3) + "." + timeSpentString.slice(-3);
const timeSpentInt = parseFloat(formattedNumber);
const inSeconds = Math.ceil(timeSpentInt);
const trimmedid = id.replace(".img", "");
data = {
courseId: id,
courseId: trimmedid,
moduleId: lessonId?.parent,
lessonId: lessonId?.identifier,
status: "completed",
Expand Down

0 comments on commit a15d192

Please sign in to comment.