Feat: fix profile avatars in comments

This reverts the change to the comment content body component in the previous commit.
This commit is contained in:
Aaron William Po
2023-11-06 15:56:25 -05:00
parent fe778f83e1
commit 3b973252fc
4 changed files with 72 additions and 72 deletions

View File

@@ -18,8 +18,9 @@ const createNewUserAvatars = async ({
}: CreateNewUserAvatarsArgs) => {
const userAvatars: UserAvatarData[] = [];
const path = imageUrls[Math.floor(Math.random() * imageUrls.length)];
users.forEach((user) => {
const path = imageUrls[Math.floor(Math.random() * imageUrls.length)];
userAvatars.push({
path,
alt: `${user.firstName} ${user.lastName}`,