Skip to content

Commit

Permalink
chore: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Nov 19, 2024
1 parent dbf56d0 commit e0401cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
File renamed without changes.
6 changes: 5 additions & 1 deletion server/utils/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { readdir, readFile } from 'node:fs/promises'
import path from 'node:path'
import { consola } from 'consola'
import { desc, inArray, isNotNull, max } from 'drizzle-orm'
import { getBrandingParameters } from './logo'
import { getBrandingParameters } from './branding'
import { defaultValidatorJSON, validatorSchema } from './schemas'

/**
Expand Down Expand Up @@ -201,6 +201,10 @@ export async function fetchValidators(params: FetchValidatorsOptions): Result<Fe
if (!withIdenticons)
validators.filter(v => v.hasDefaultLogo).forEach(v => delete v.logo)

const nullScore = { total: null, dominance: null, availability: null, reliability: null }
// @ts-expect-error The wallet expects a score object, but until these values are stable, we will use null
validators.forEach(v => v.score = nullScore)

return { data: validators, error: undefined }
}
catch (error) {
Expand Down

0 comments on commit e0401cd

Please sign in to comment.