fix newpost

This commit is contained in:
Adolfo Reyna
2023-01-18 13:20:01 -05:00
parent 2f76402658
commit 749444a2a0

View File

@@ -93,7 +93,7 @@ let NewPostView = (props) => {
const handleNewPostButton = async () => {
//setPostContent('');
API.newPost(postContent + " " + extraContent.join(" "), props.route.params.toProfile).then((newPost) => {
API.newPost(postContent + " " + extraContent.join(" "), props.route.params?.toProfile).then((newPost) => {
setPostContent('');
setExtraContent([]);
navigation.goBack();