Fixes errors: Cannot read property 'upchieve101' of undefined and undefined is not an object (evaluating 'this.certifications[this.course.quizKey]'). When a user clicks "logout" from TrainingView the component gets rendered without a user object in the vuex store and throws the two errors mentioned. This fix first does the redirect to /logout and then removes the user from vuex
Developer self-review checklist
[x] Potentially confusing code has been explained with comments
[x] No warnings or errors have been introduced; all known error cases have been handled
[x] Any appropriate documentation (within the code, README.md, docs, etc) has been updated
Description
Cannot read property 'upchieve101' of undefined
andundefined is not an object (evaluating 'this.certifications[this.course.quizKey]')
. When a user clicks "logout" fromTrainingView
the component gets rendered without auser
object in the vuex store and throws the two errors mentioned. This fix first does the redirect to/logout
and then removes the user from vuexDeveloper self-review checklist