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} />
}

View File

@@ -20,13 +20,13 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
if (f.rendition === 'adaptive') chosenVideo.push(f);
});
if(videoUrl) chosenVideo.push({link: videoUrl});
console.log(chosenVideo);
//console.log(chosenVideo);
setChosenVideo(chosenVideo);
}, [videoUrl, postId]);
const onLoad = async ()=>{
if(!viewer.data[postId]) return 0;
console.log(postId + " loaded")
//console.log(postId + " loaded")
await video.current.setPositionAsync(viewer.data[postId].time*1000);
//video.current.isPlaying = true;
//video.current.presentFullscreenPlayer();
@@ -43,7 +43,7 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
postId: postId,
profileId: profileId,
};
console.log(postId, newData);
//console.log(postId, newData);
API.setDataValue(postId, newData);
}