aboutsummaryrefslogtreecommitdiff
path: root/admin/public
diff options
context:
space:
mode:
authorMarvin Borner2021-01-26 13:22:23 +0100
committerMarvin Borner2021-01-26 13:22:23 +0100
commitc59c95a23179d1c4b3c86f959f16e6ea0f0b3c34 (patch)
tree08782fad3f7efc0bf4da3caae6df94ce1684384b /admin/public
parent39652bd9c908247139d177b02f1126cb5e07c119 (diff)
Whoops
Diffstat (limited to 'admin/public')
-rw-r--r--admin/public/questions.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/public/questions.js b/admin/public/questions.js
index 32e48bf..ad0bc1a 100644
--- a/admin/public/questions.js
+++ b/admin/public/questions.js
@@ -52,6 +52,5 @@ function render(index) {
document.getElementById("switch").addEventListener("click", () => {
chart.destroy();
render(++question_index);
- if (question_index + 1 < data.length) question_index++;
- else question_index = 0;
+ if (question_index + 1 >= data.length) question_index = -1;
});