This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-11 20:30:26 -05:00
1 parent 2452a715ac
commit 0f8d8722ad
1 file changed
+5
@@ -58,6 +58,10 @@
const selected = { ...selections, [questionId]: answer };
selections = selected;
if (answer === '__other__') return;
advance(selected);
}
function advance(selected = selections) {
if (questionIndex < questions.length - 1) {
questionIndex += 1;
} else if (hasAnswers(selected)) {
@@ -100,6 +104,7 @@
] === option.label
? 'bg-white shadow-sm dark:bg-white/[0.1]'
: 'hover:bg-white/70 dark:hover:bg-white/[0.06]'}"
onclick={() => selections[question.id] === option.label && advance(selections)}
>
<input
class="sr-only"