Skip to content

JS error when displaying the add survey page

When the /polls/default-add-survey page is shown, I have a JS error in the console :

Uncaught (in promise) Not displaying message as it exists main.js:286:29
    disableVotes main.js:286
    (Asynchrone : setTimeout handler)

This code seams to be involved :

if (false === await canVote.json()) {
  let errorMessage = "You cannot vote as you already voted on this poll";
  deactivateButton(submitButton, errorMessage);
}
Edited by Fabien Quatravaux