Skip to content

Commit

Permalink
Remove extra BUILTIN line from given chips
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Oct 29, 2023
1 parent 0dc3001 commit 5837a2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/src/stores/chip.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ function getTemplate(project: keyof typeof CHIP_PROJECTS, chipName: string) {

function getBuiltinCode(project: keyof typeof CHIP_PROJECTS, chipName: string) {
const template = getTemplate(project, chipName);
if (isBuiltinOnly(chipName)) {
return template;
}
const bodyComment = "//// Replace this comment with your code.";
const builtinLine = `BUILTIN ${chipName};`;
const builtinCode = template.includes(bodyComment)
Expand Down

0 comments on commit 5837a2b

Please sign in to comment.