Skip to content

Commit

Permalink
Fix: Do not show notify on return (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster committed Jun 5, 2023
1 parent b9deca9 commit 3e79541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/adapt-contrib-tutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Tutor extends Backbone.Controller {
if (!model.isTypeGroup('question')) return;
const type = this.getTutorType(model);
if (!type) return;
const shouldShowFeedback = (model.get('_canShowFeedback') && model.get('_isSubmitted') && type !== TUTOR_TYPE.INLINE);
const shouldShowFeedback = (model.get('_canShowFeedback') && model.get('_isSubmitted') && type === TUTOR_TYPE.INLINE.asString);
if (!shouldShowFeedback) return;
model.setupFeedback();
Adapt.trigger('questionView:showFeedback', view);
Expand Down

0 comments on commit 3e79541

Please sign in to comment.