fix: return 0 instead of null for missing user percentile data
This commit is contained in:
parent
25b2831fcc
commit
d964c7b7b3
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class FayanService {
|
|||
return new Array(pubkeys.length).fill(null)
|
||||
}
|
||||
const data = await res.json()
|
||||
return pubkeys.map((pubkey) => data[pubkey] ?? null)
|
||||
return pubkeys.map((pubkey) => data[pubkey] ?? 0)
|
||||
} catch {
|
||||
return new Array(pubkeys.length).fill(null)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue