Fix counting trait types by default missing trait identifier

This commit is contained in:
Mikko
2021-09-27 12:46:14 +03:00
committed by GitHub
parent 8d5e2b4076
commit 780f6d5c13
+1 -1
View File
@@ -216,7 +216,7 @@ const addTraitCounts = (
) =>
tokens.map((token) => {
const count = token.attributes.filter(
(a) => a.value !== getMissingTraitIdentifier(a.trait_type) ?? MISSING
(a) => a.value !== (getMissingTraitIdentifier(a.trait_type) ?? MISSING)
).length
const traitCountAttribute = {
trait_type: 'Trait Count',