Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrp13 committed Sep 12, 2023
1 parent f9d33b5 commit 6262a69
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions core/create-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export async function createApp(config: CreateMagicAppConfig) {
}).run();
}

if (chain == 'evm') {
if (chain === 'evm') {
network = await new Select({
name: 'network',
message: 'Which network would like to use?',
Expand Down Expand Up @@ -168,18 +168,20 @@ export async function createApp(config: CreateMagicAppConfig) {
} else {
config.template = 'nextjs-universal-wallet';
}
} else if (chain === 'flow') {
config.template = 'nextjs-flow-dedicated-wallet';
} else {
if (chain === 'flow') {
config.template = 'nextjs-flow-dedicated-wallet';
} else {
config.template = 'nextjs-dedicated-wallet';
}
config.template = 'nextjs-dedicated-wallet';
}
isChosenTemplateValid = true;
}
}
}

if (quickstart) {
network = 'polygon-mumbai';
}

const template = (
<Zombi<CreateMagicAppData>
name="create-magic-app"
Expand All @@ -189,7 +191,7 @@ export async function createApp(config: CreateMagicAppConfig) {
branch: config?.branch ?? 'master',
projectName: config?.projectName,
template: isChosenTemplateValid ? config.template : undefined,
network: quickstart ? 'polygon-mumbai' : network.length > 0 ? network : undefined,
network: network.length > 0 ? network : undefined,
npmClient: 'npm',
})}
prompts={[
Expand Down

0 comments on commit 6262a69

Please sign in to comment.