Cleaning console.log

This commit is contained in:
Adolfo Reyna
2023-10-23 20:08:28 -04:00
parent d4410c5715
commit dc52f57424
3 changed files with 12 additions and 10 deletions

View File

@@ -25,12 +25,14 @@ let Post = (props) => {
let usersStrings = post.content.match(/@[A-z]+:.+\w/g);
let userIds = [];
let usersProfileCars = [];
usersStrings.forEach((userString)=>{
userIds.push(userString.split(':')[1]);
usersProfileCars.push(
<ProfileVertical profileid={userString.split(':')[1]} skipFollow={true}/>
);
});
if(usersStrings){
usersStrings.forEach((userString)=>{
userIds.push(userString.split(':')[1]);
usersProfileCars.push(
<ProfileVertical profileid={userString.split(':')[1]} skipFollow={true}/>
);
});
}
let renderPost = (obj) => {
return <ProfileVertical profileid={obj.item} />
}