From 5cd7d8ec849a43ae9b5854b447701beef7e68cac Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 8 Dec 2016 10:19:23 +0100 Subject: [PATCH] Fix undefined userid in new poll --- www/poll/test/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);