Merge pull request #878 from colouring-cities/fix/855
Fix counting verifications
This commit is contained in:
commit
a4ba0795bf
@ -59,7 +59,8 @@ export async function getBuildingVerifications(building: BaseBuilding) {
|
|||||||
|
|
||||||
for (const item of verifications) {
|
for (const item of verifications) {
|
||||||
if (JSON.stringify(building[item.attribute]) == JSON.stringify(item.verified_value)) {
|
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;
|
return verified;
|
||||||
|
Loading…
Reference in New Issue
Block a user