Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed Sep 5, 2024
1 parent d1c9d58 commit 0ff08b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/workspace/BuildProject/BuildProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const BuildProject: FC<Props> = ({ projectId, contract, updateContract }) => {
.filter((f) => {
const _fileExtension = getFileExtension(f.name || '');
return (
f.path.startsWith('dist') &&
f.path!.startsWith('dist') &&
['abi'].includes(_fileExtension as string)
);
})
Expand Down Expand Up @@ -242,7 +242,7 @@ const BuildProject: FC<Props> = ({ projectId, contract, updateContract }) => {
tsProjectFiles = await getAllFilesWithContent(
projectId,
(file) =>
!file.path.startsWith('dist') &&
!file.path!.startsWith('dist') &&
file.name.endsWith('.ts') &&
!file.name.endsWith('.spec.ts'),
);
Expand Down

0 comments on commit 0ff08b7

Please sign in to comment.