Working on exercise 1.2

This commit is contained in:
2024-11-16 16:56:20 +01:00
parent 70e508ce7a
commit 7912e38932
16 changed files with 85 additions and 59 deletions

View File

@@ -114,6 +114,13 @@ export const useBasketStore = defineStore('basketStore', {
// Exercise 0.2 is solved
exerciseStore.solveExercise(0, 2)
for (let ticket of this.itemsInBasket) {
if (!ticket.concert.offered) {
exerciseStore.solveExercise(1, 2)
feedbackStore.addSnackbar(BannerStateEnum.EXERCISESOLVED12)
}
}
} else {
feedbackStore.addSnackbar(BannerStateEnum.ERROR)
}