From cfb55c7d1353965a5a2ad35ed0ffece26fa9037b Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 16 May 2024 10:32:05 +0200 Subject: [PATCH] chore: round status percentages --- frontend/src/components/projects/ProjectMeter.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/projects/ProjectMeter.vue b/frontend/src/components/projects/ProjectMeter.vue index c02fc00c..b9f93bf8 100644 --- a/frontend/src/components/projects/ProjectMeter.vue +++ b/frontend/src/components/projects/ProjectMeter.vue @@ -23,19 +23,19 @@ const meterItems = computed(() => { return [ { - value: (extraChecksPassed / groups) * 100, + value: Math.round((extraChecksPassed / groups) * 100), color: '#749b68', label: t('components.card.extraTestsSucceed'), icon: 'pi pi-check', }, { - value: (structureChecksPassed / groups) * 100, + value: Math.round((structureChecksPassed / groups) * 100), color: '#fa9746', label: t('components.card.structureTestsSucceed'), icon: 'pi pi-exclamation-circle', }, { - value: (submissionsFailed / groups) * 100, + value: Math.round((submissionsFailed / groups) * 100), color: '#FF5445', label: t('components.card.testsFail'), icon: 'pi pi-times',