diff --git a/src/stores/modules/index.js b/src/stores/modules/index.js index 232b1c4..d09960a 100644 --- a/src/stores/modules/index.js +++ b/src/stores/modules/index.js @@ -8,7 +8,6 @@ export const useModulesStore = defineStore('modules', { loadingSingleModule: false, modules: [], error: null, - // currentModule: {}, }), getters: { currentModule(state) { @@ -113,10 +112,6 @@ export const useModulesStore = defineStore('modules', { const watchedPercentage = response.data.watched_percentage; - // this.modules.find( - // (mod) => mod.id === this.currentModule.id, - // ).watched_percentage = watchedPercentage; - this.currentModule.watched_percentage = watchedPercentage; } catch (error) { this.error = error;