Skip to content

Commit

Permalink
fixed a bug that occured when trying to join a combi meal when no mor…
Browse files Browse the repository at this point in the history
…e meals for the day could be booked
  • Loading branch information
Felix Ruf committed Aug 15, 2024
1 parent fdab970 commit aabf113
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/src/components/dashboard/MealCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const checkboxCSS = computed(() => {
});
async function handle() {
console.log('click');
// Meal is being offered by someone to be taken over
if (mealOrVariation.value?.hasOffers === true && mealOrVariation.value.mealState === MealState.TRADEABLE) {
let slugs = [mealOrVariation.value.dishSlug as string];
Expand Down Expand Up @@ -263,5 +264,6 @@ async function closeCombiModal(slugs: string[]) {
if (slugs !== undefined) {
await joinMeal(slugs);
}
removeLock(String(props.dayID));
}
</script>

0 comments on commit aabf113

Please sign in to comment.