mirror of
https://github.com/jwinterm/rarity-analyser.git
synced 2026-10-17 05:41:40 +02:00
Fix counting trait types by default missing trait identifier
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user