From a6ad0a3cfdeb1f0eda81f8d851b7526adcca0cfc Mon Sep 17 00:00:00 2001 From: Daniel Klein Date: Thu, 26 Sep 2024 12:44:59 +0200 Subject: [PATCH] fix: ranking positive compliance value --- composables/useData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/useData.ts b/composables/useData.ts index 484383e..5bc5c36 100644 --- a/composables/useData.ts +++ b/composables/useData.ts @@ -265,7 +265,7 @@ export const useData = defineStore('data', () => { isValid = value ? true : false } if (ref.field === 'compliance') { - negative = value + positive = value } rankPoints += isValid ? ref.points : 0