Hi everyone!
I’ve created a component that serves as a recap of the lessons in a course. It displays all the lessons in a list, and part of the component includes a checkmark that indicates whether a specific lesson has been completed by the user.
However, I’m facing an issue: the checkmark currently only takes the initial value and duplicates it for all the lessons in the list. Instead of reflecting the actual completion status of each lesson, the checkmarks are all the same.
How can I dynamically update the checkmark for each lesson so that it accurately reflects its completion status (true or false) based on the user’s progress? I’d appreciate any advice or guidance on resolving this issue.
Thanks in advance for your help!