Check for user exists in additional content box fetch (#1756)

This commit is contained in:
Ben Halpern 2019-02-06 21:03:20 -04:00 committed by GitHub
parent 71a419e5ee
commit bf393c1323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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