From e6df235241abe3fd3772b65eff256b16881aea4e Mon Sep 17 00:00:00 2001 From: Alex | Kronox Date: Fri, 20 Sep 2024 11:04:01 +0200 Subject: [PATCH] include masterarbeit in gesamt --- website/src/store/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/store/store.ts b/website/src/store/store.ts index 5d2b4fb..6dc6d38 100644 --- a/website/src/store/store.ts +++ b/website/src/store/store.ts @@ -60,7 +60,7 @@ const state = defineStore('state', { }, // returns the sum of all lp getTotalChosenLP(): number { - return [...this.choices.chosenFaecher.values()].map(i => Math.min(i.maxLP, (this.choices.chosenFachToModule.get(i.name)?.map(i => this.getModulById(i[0]).lp).reduce((a,b) => a+b, 0) ?? Infinity))).reduce((a,b)=> a+b, 0) + this.choices.ueqPunkte + return [...this.choices.chosenFaecher.values()].map(i => Math.min(i.maxLP, (this.choices.chosenFachToModule.get(i.name)?.map(i => this.getModulById(i[0]).lp).reduce((a,b) => a+b, 0) ?? Infinity))).reduce((a,b)=> a+b, 0) + this.choices.ueqPunkte + 30 }, getMaximumLP(): number { return 120