Skip to content

Commit

Permalink
🐛 don't delete saved answers
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Jan 29, 2025
1 parent c86bdd3 commit bb35196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/QuestionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const props = defineProps<{
defineEmits<{
(e: 'saveAnswer', answer: Answer): void
(e: 'skipQuestion'): void
(e: 'nextQuestion'): void
}>()
const { answers, deleteAnswer } = useStore()
Expand Down Expand Up @@ -89,7 +90,7 @@ const hasAnswer = computed(
</button>

<div class="ms-auto self-center">
<button @click="$emit('skipQuestion')" class="btn-outline">
<button @click="$emit('nextQuestion')" class="btn-outline">
Weiter
<IconForward aria-hidden="true" class="ms-1" />
</button>
Expand Down
1 change: 1 addition & 0 deletions src/views/Questionnaire.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const previousQuestion = () => {
:transitionName="transitionName"
@saveAnswer="saveAnswer"
@skipQuestion="skipQuestion"
@nextQuestion="nextQuestion"
/>
</article>

Expand Down

0 comments on commit bb35196

Please sign in to comment.