Merge pull request #46 from web3privacy/dk/compliance-invert-logic

fix: ranking positive compliance value
This commit is contained in:
MufCZ 2024-09-27 12:17:31 +02:00 committed by GitHub
commit 04a8eaf2f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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