diff --git a/www/poll/main.js b/www/poll/main.js index f5b1a6b2a..0f50a70bb 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -379,7 +379,7 @@ define([ var msg = "Propose an option"; Cryptpad.prompt(msg, "", function (option) { - if (option === null) { return; } + if (option === null || !option) { return; } makeOption(module.rt.proxy, id, option).val(option).focus(); }); //makeOption(module.rt.proxy, id).focus();