Cleaning console.log
This commit is contained in:
@@ -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} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user