Skip to content

Commit f949b6d

Browse files
EdJoPaTomaxlath
andcommitted
fix: use older syntax
the new syntax works but is transpiled into usable code which is not so easy to read in JS Co-authored-by: maxlath <[email protected]>
1 parent 48c1590 commit f949b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/rank.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function truthyPropertyClaims (propertyClaims: PropertyClaims): PropertyC
55
const aggregate: Partial<Record<Rank, Claim[]>> = {}
66
for (const claim of propertyClaims) {
77
const { rank } = claim
8-
aggregate[rank] ??= []
8+
aggregate[rank] = aggregate[rank] || []
99
aggregate[rank].push(claim)
1010
}
1111

0 commit comments

Comments
 (0)