Skip to content

Commit

Permalink
Merge pull request #1 from dsrvlabs/fix/create-project
Browse files Browse the repository at this point in the history
fix: create project feature
  • Loading branch information
markjung96 authored Nov 20, 2024
2 parents ee5da4d + 235469d commit 54e213c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/project/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,11 @@ const NewProject = () => {
const isExists = async (dir: string) => {
if (!client) return false;
try {
log.debug(await client.fileManager.readdir("browser/arbitrum/" + dir));
return true;
const result = await client.fileManager.readdir("browser/arbitrum/" + dir);
if (Object.keys(result).length > 0 && result.constructor === Object) {
return true;
}
return false;
} catch (e) {
log.error(e);
return false;
Expand Down

0 comments on commit 54e213c

Please sign in to comment.