Fix type error in update-metrics
This commit is contained in:
parent
ff81b859d1
commit
7d9908dbd0
|
@ -187,7 +187,11 @@ export async function updateMetricsCore() {
|
|||
(e) => contractsById[e.contractId]
|
||||
)
|
||||
const bets = groupContracts.map((e) => {
|
||||
return betsByContract[e.id] ?? []
|
||||
if (e.id in betsByContract) {
|
||||
return betsByContract[e.id] ?? []
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
})
|
||||
|
||||
const creatorScores = scoreCreators(groupContracts)
|
||||
|
|
Loading…
Reference in New Issue
Block a user