File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
frontend/src/routes/(root)/(logged)/tutorials Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 185185 // Skip all tutorials in current tab
186186 async function skipCurrentTabTutorials() {
187187 if (currentTabIndexes .length === 0 ) return
188- await skipTutorialsByIndexes (currentTabIndexes )
189- await syncTutorialsTodos ()
188+ try {
189+ await skipTutorialsByIndexes (currentTabIndexes )
190+ await syncTutorialsTodos ()
191+ } catch (error ) {
192+ console .error (' Error marking tutorials as completed:' , error )
193+ }
190194 }
191195
192196 // Reset all tutorials in current tab
193197 async function resetCurrentTabTutorials() {
194198 if (currentTabIndexes .length === 0 ) return
195- await resetTutorialsByIndexes (currentTabIndexes )
196- await syncTutorialsTodos ()
199+ try {
200+ await resetTutorialsByIndexes (currentTabIndexes )
201+ await syncTutorialsTodos ()
202+ } catch (error ) {
203+ console .error (' Error resetting tutorials:' , error )
204+ }
197205 }
198206
199207 // Update a single tutorial's completion status
You can’t perform that action at this time.
0 commit comments