Closed sylvihuynh closed 2 years ago
Really nice work, Sylvi!!
The only thing I thought about was that if you
""
(which is the new null
))Then the item isn't updated/deleted in local storage. What do you think about that?
I have not added anything for deleting it, but I have added logic for updating and it should work. This is unless you refresh the page as the answer will get a new id and become a "new" answer.
fix #67
Save current batch to localstorage when next is clicked. Only assessments that have a score will be saved. The batches are saved on key taskNumber_assessments, ex. 2_assessments.
There is a problem with overwriting earlier assessments due to new ids being generated each time we refresh/go back and forth to the assessment pages. Meaning that the "same" assessment might be added to localstorage several times.