Skip to content

Commit ced5733

Browse files
authored
Merge pull request #70 from filips123/fix-displaying-menus-2
2 parents 6c4e409 + 95090b2 commit ced5733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/components/menus/MenuDisplay.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ export default class MenuDisplay extends Vue {
8282
}
8383

8484
get currentSnackMenu (): string | null {
85-
const currentMenu = this.menu?.snack[this.snackType as keyof typeof this.menu.snack]
85+
const currentMenu = this.menu?.snack?.[this.snackType as keyof typeof this.menu.snack]
8686
return currentMenu ? this.convertNewlines(currentMenu) : null
8787
}
8888

8989
get currentLunchMenu (): string | null {
90-
const currentMenu = this.menu?.lunch[this.lunchType as keyof typeof this.menu.lunch]
90+
const currentMenu = this.menu?.lunch?.[this.lunchType as keyof typeof this.menu.lunch]
9191
return currentMenu ? this.convertNewlines(currentMenu) : null
9292
}
9393

0 commit comments

Comments
 (0)