File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ export default class AddonModQuizReviewPage implements OnInit {
173173 this . logView ( ) ;
174174 } catch ( error ) {
175175 CoreAlerts . showError ( error , { default : Translate . instant ( 'addon.mod_quiz.errorgetquiz' ) } ) ;
176+ if ( error . errorcode === 'noreview' || error . errorcode === 'noreviewattempt' ) {
177+ CoreNavigator . back ( ) ;
178+ }
176179 }
177180 }
178181
Original file line number Diff line number Diff line change @@ -515,6 +515,7 @@ export class AddonModQuizProvider {
515515 cacheKey : this . getAttemptReviewCacheKey ( attemptId , page ) ,
516516 component : ADDON_MOD_QUIZ_COMPONENT ,
517517 componentId : options . cmId ,
518+ deleteCacheIfWSError : true ,
518519 ...CoreSites . getReadingStrategyPreSets ( options . readingStrategy ) , // Include reading strategy preSets.
519520 } ;
520521
You can’t perform that action at this time.
0 commit comments