Skip to content

Commit

Permalink
Check for user exists in additional content box fetch (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalpern committed Feb 7, 2019
1 parent 71a419e commit bf393c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function initializeAdditionalContentBoxes() {
.substring(0, 5);
var user = userData();
var stateParam = 'include_sponsors';
if (!user.display_sponsors) {
if (user && !user.display_sponsors) {
stateParam = 'do_not_include_sponsors';
}
window
Expand Down

0 comments on commit bf393c1

Please sign in to comment.