Skip to content

Commit

Permalink
swap logic in ternary
Browse files Browse the repository at this point in the history
should only be calling getStartHash if start page is enabled
fixes #2907
  • Loading branch information
moloko authored Sep 9, 2020
1 parent 41a9657 commit f6caafb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ define([
Adapt.trigger('app:languageChanged', newLanguage);
_.defer(() => {
Adapt.startController.loadCourseData();
const hash = Adapt.startController.isEnabled() ?
'#/' :
Adapt.startController.getStartHash(true);
const hash = Adapt.startController.isEnabled() ? Adapt.startController.getStartHash(true) : '#/';
Adapt.router.navigate(hash, { trigger: true, replace: true });
});
}
Expand Down

0 comments on commit f6caafb

Please sign in to comment.