Skip to content

Commit

Permalink
fix: remove templates from users project
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Dec 18, 2023
1 parent fb835b3 commit 87ed323
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/project/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const getUserProjects = createSelector(getAddress, getData, (address, pro
const project = projects[projectId]
const isOwnedByUser = !!project.ethAddress && !!address && isEqual(project.ethAddress, address)
if (isOwnedByUser || project.ethAddress === null) {
record[projectId] = project
if (!project.isTemplate) {
record[projectId] = project
}
}
return record
}, {} as ProjectState['data'])
Expand Down

0 comments on commit 87ed323

Please sign in to comment.