Skip to content

Commit

Permalink
fix creating contract only template (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaptosj authored Oct 10, 2024
1 parent 97235dd commit 4612250
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/workflow/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@ export const needSigningOptionChoice = (prev: any) => {
};

export const needSurfChoice = (values: Selections) => {
if (values.template.path === FullstackBoilerplateTemplateInfo.value.path) {
return "select";
if (
values.projectType === TemplateProjectType.MOVE ||
values.template.path != FullstackBoilerplateTemplateInfo.value.path
) {
return null;
}

return null;
return "select";
};

export const needFrameworkChoice = (prev: any) => {
switch (prev) {
case TemplateProjectType.MOVE:
return null;
default:
return "select";
export const needFrameworkChoice = (values: Selections) => {
if (values.projectType === TemplateProjectType.MOVE) {
return null;
}

return "select";
};

0 comments on commit 4612250

Please sign in to comment.