Skip to content

Commit

Permalink
improve condition for projectCount
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Sep 19, 2023
1 parent 0757d1c commit 5fec931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repositories/userRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const findUserByWalletAddress = async (

user.projectsCount = await fetchUserProjectsCount(
user!.id,
user?.id === ownerUserId,
Number(user?.id) === Number(ownerUserId),
);

return user;
Expand Down

0 comments on commit 5fec931

Please sign in to comment.