Fixing isCourseCompleted, so handleLastComponent functions as it should
Changes
The isCourseCompleted now returns true or false wheter the course is 100% completed or not. HandleLastComponent then navigates to the course screen or to the certificate screen
Related Issues
List any related issues or tickets that this pull request addresses or resolves.
Checklist
[x] Code has been tested locally and passes all relevant tests.
[x] Documentation has been updated to reflect the changes, if applicable.
[x] Code follows the established coding style and guidelines of the project.
[x] All new and existing tests related to the changes have passed.
[x] Any necessary dependencies or new packages have been properly documented.
[x] Pull request title and description are clear and descriptive.
[x] Reviewers have been assigned to the pull request.
[x] Any potential security implications have been considered and addressed.
[x] Performance impact of the changes has been evaluated, if relevant.
[x] Changes have been approved by Product Owner
[x] Code has been analyzed with CodeScene
[x] I have reviewed the pull request myself
Screenshots (if applicable)
Insert screenshots or gifs that visually demonstrate the changes made in this pull request.
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Description
Fixing isCourseCompleted, so handleLastComponent functions as it should
Changes
The isCourseCompleted now returns true or false wheter the course is 100% completed or not. HandleLastComponent then navigates to the course screen or to the certificate screen
Related Issues
List any related issues or tickets that this pull request addresses or resolves.
Checklist
Screenshots (if applicable)
Insert screenshots or gifs that visually demonstrate the changes made in this pull request.
If mobile/frontend pull request, what version of the backend is it stable, and running on?
It is running on the dev backend
Commit id: ef2ca80