Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Jan 21, 2025
1 parent 33fbdd8 commit 74e07e2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions apps/extension/src/routes/page/onboarding/password/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ export const setOnboardingValuesInStorage = async (seedPhraseOrigin: SEED_PHRASE
const chainRegistryClient = new ChainRegistryClient();
const { rpcs, frontends } = await chainRegistryClient.remote.globals();

let selectedFrontend: EntityMetadata | undefined;
// Check for default frontend in registry
for (const frontend of frontends) {
if ((frontend.name = 'Radiant Commons')) {
selectedFrontend = frontend;
}
}
// Define a canconcial default frontend
const defaultFront = 'Radiant Commons';

let selectedFrontend: EntityMetadata | undefined = frontends.find(
frontend => frontend.name === defaultFront,
);

// If default frontend is not found, randomly select a frontend
if (!selectedFrontend) {
Expand Down

0 comments on commit 74e07e2

Please sign in to comment.