diff --git a/client/src/pages/competence/utils.ts b/client/src/pages/competence/utils.ts index 5ebc671f..9f5539c0 100644 --- a/client/src/pages/competence/utils.ts +++ b/client/src/pages/competence/utils.ts @@ -13,11 +13,11 @@ export function assignmentsMaxEvaluationPoints( } export function assignmentsUserPoints(assignments: CompetenceCertificateAssignment[]) { - return _.sum( + return +_.sum( assignments .filter((a) => a.completion?.completion_status === "EVALUATION_SUBMITTED") .map((a) => a.completion?.evaluation_points ?? 0) - ); + ).toFixed(1); } export function competenceCertificateProgressStatusCount( diff --git a/client/src/pages/learningPath/circlePage/LearningSequence.vue b/client/src/pages/learningPath/circlePage/LearningSequence.vue index 9862868c..7a2ae090 100644 --- a/client/src/pages/learningPath/circlePage/LearningSequence.vue +++ b/client/src/pages/learningPath/circlePage/LearningSequence.vue @@ -41,7 +41,6 @@ const someFinished = computed(() => { if (props.learningSequence) { return someFinishedInLearningSequence(props.learningSequence); } - return false; }); @@ -235,7 +234,11 @@ type LearninContentWithCompetenceCertificate = : 'no-status' " > - + {{ $t("a.Selbsteinschätzung") }} diff --git a/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue b/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue index 82664498..2c73d056 100644 --- a/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue +++ b/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue @@ -6,10 +6,9 @@ const props = defineProps<{ content: LearningContent; }>(); -