diff --git a/client/src/components/CommentsModule.tsx b/client/src/components/CommentsModule.tsx index 547135f..65d8db2 100644 --- a/client/src/components/CommentsModule.tsx +++ b/client/src/components/CommentsModule.tsx @@ -24,6 +24,11 @@ export default function CommentsModule() { let postId = id + // Function to get the profile picture URL + const getProfilePicture = (userId: string): string => { + return `${config.serverAddress}/users/profile-image/${userId}`; + }; + const getComments = async () => { instance .get(config.serverAddress + `/post/${postId}/getComments`).then((res) => { @@ -47,21 +52,26 @@ export default function CommentsModule() {