From a68acac13b3a3cd1b5dad7fc8fe28bae295b5070 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 3 Mar 2017 12:07:16 +0100 Subject: [PATCH] Only ask for a display name once in /poll --- www/poll/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/poll/main.js b/www/poll/main.js index d7e391c8b..98f5ea9ba 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -647,7 +647,7 @@ define([ // Update the toolbar list: // Add the current user in the metadata if he has edit rights if (readOnly) { return; } - if (typeof(lastName) === 'string' && lastName.length) { + if (typeof(lastName) === 'string') { setName(lastName); } else { var myData = {};