Skip to content

Commit

Permalink
Fix: Incorrect return early logic in onButtonsViewPostRender
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 committed Aug 10, 2023
1 parent ffc89fc commit 3a14e1c
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 @@ -37,7 +37,7 @@ class Tutor extends Backbone.Controller {
onButtonsViewPostRender(view) {
const { model } = view;
const type = this.getTutorType(model);
if (type !== TUTOR_TYPE.INLINE) return;
if (type !== TUTOR_TYPE.INLINE.asString) return;
const $btnAction = view.$('.js-btn-action');
const $btnFeedback = view.$('.js-btn-feedback');
const $btnMarking = view.$('.js-btn-marking');
Expand Down

0 comments on commit 3a14e1c

Please sign in to comment.