Skip to content

Commit

Permalink
Set cookie value ror hideElements before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Tymofeiev committed Aug 21, 2024
1 parent 71f0978 commit a68fc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/static/js/student_account/views/FinishAuthView.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@

render: function() {
try {
var next = _.bind(this.enrollment, this);
this.checkEmailOptIn(next);
if (this.hideElements) {
document.cookie = 'hideElements=' + this.hideElements + '; path=/';
}
var next = _.bind(this.enrollment, this);
this.checkEmailOptIn(next);
} catch (err) {
this.updateTaskDescription(gettext('Error') + ': ' + err.message);
this.redirect(this.nextUrl);
Expand Down

0 comments on commit a68fc7a

Please sign in to comment.