Skip to content
Snippets Groups Projects
Commit 27479a68 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Fix SSum-Calculation

parent 61c0bae8
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
{roundOne(calculateESum(workPackages))}
</td>
<td class="tg-0lax">
{roundOne(calculateSSum(workPackages))}
{roundOne(calculateSSum(workPackages))}
</td>
<td class="tg-0lax">
</td>
......
......@@ -48,7 +48,7 @@ export function calculateSSum(workPackages: WorkPackage[]): number {
sumIgnoreNonNumbers(
workPackages
.filter(({ a, b }) => typeof a === "number" && typeof b === "number")
.map((workPackage) => calculateS(workPackage))
.map((workPackage) => calculateS(workPackage) ** 2)
)
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment