diff --git a/server/utils/icon.ts b/server/utils/branding.ts similarity index 100% rename from server/utils/icon.ts rename to server/utils/branding.ts diff --git a/server/utils/validators.ts b/server/utils/validators.ts index e62eea7..e2d5ea8 100644 --- a/server/utils/validators.ts +++ b/server/utils/validators.ts @@ -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' /** @@ -201,6 +201,10 @@ export async function fetchValidators(params: FetchValidatorsOptions): Result 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) {