diff --git a/www/poll/test/main.js b/www/poll/test/main.js index 8dbc5c683..d2abae97c 100644 --- a/www/poll/test/main.js +++ b/www/poll/test/main.js @@ -691,7 +691,7 @@ define([ .on('ready', function (info) { Cryptpad.getPadAttribute('userid', function (e, userid) { if (e) { console.error(e); } - if (userid === null) { userid = Render.coluid(); } + if (!userid) { userid = Render.coluid(); } APP.userid = userid; Cryptpad.setPadAttribute('userid', userid, function (e) { ready(info, userid, readOnly);