Only ask for a display name once in /poll

pull/1/head
yflory 8 years ago
parent a978b51656
commit a68acac13b

@ -647,7 +647,7 @@ define([
// Update the toolbar list: // Update the toolbar list:
// Add the current user in the metadata if he has edit rights // Add the current user in the metadata if he has edit rights
if (readOnly) { return; } if (readOnly) { return; }
if (typeof(lastName) === 'string' && lastName.length) { if (typeof(lastName) === 'string') {
setName(lastName); setName(lastName);
} else { } else {
var myData = {}; var myData = {};

Loading…
Cancel
Save