Skip to content

Commit

Permalink
Merge pull request #38 from dsrvlabs/fix/arbitrum-search-recursively
Browse files Browse the repository at this point in the history
fix: edit recursive logic
  • Loading branch information
markjung96 authored Sep 6, 2024
2 parents c6fc08b + 29cc1bb commit 3f3ee9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/arbitrum/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export const Project: React.FunctionComponent<InterfaceProps> = ({
const projects = await getProjectHaveTomlFile('browser/arbitrum');
setProjectList(projects);
if (projects?.length > 0) {
const compileTarget = projects[0];
const targetProjects = projects.find((item) => item.includes(template));
const compileTarget = targetProjects ? targetProjects : projects[0];
setCompileTarget(compileTarget);
try {
const abiStr = await client?.fileManager.readFile('browser/arbitrum/abi.json');
Expand Down

0 comments on commit 3f3ee9d

Please sign in to comment.