Fix counting verifications
This commit is contained in:
parent
d6ca1c4dc4
commit
c625754d1b
@ -59,7 +59,8 @@ export async function getBuildingVerifications(building: BaseBuilding) {
|
||||
|
||||
for (const item of verifications) {
|
||||
if (JSON.stringify(building[item.attribute]) == JSON.stringify(item.verified_value)) {
|
||||
verified[item.attribute] = verified[item.attribute] ?? 0 + 1;
|
||||
const count = verified[item.attribute] || 0;
|
||||
verified[item.attribute] = count + 1;
|
||||
}
|
||||
}
|
||||
return verified;
|
||||
|
Loading…
Reference in New Issue
Block a user