From 564c4a362857d08690b82d50f7d11b99e7291ec3 Mon Sep 17 00:00:00 2001 From: u-e Date: Wed, 19 Dec 2018 21:59:21 +0300 Subject: [PATCH] fixed load post --- src/screens/post/container/postContainer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/post/container/postContainer.js b/src/screens/post/container/postContainer.js index a5cb6fd78..6c63f87bd 100644 --- a/src/screens/post/container/postContainer.js +++ b/src/screens/post/container/postContainer.js @@ -25,10 +25,12 @@ class PostContainer extends Component { // Component Life Cycle Functions componentDidMount() { const { navigation } = this.props; - const { content } = navigation.state && navigation.state.params; + const { content, permlink, author } = navigation.state && navigation.state.params; if (content) { this.setState({ post: content }); + } else { + this._loadPost(author, permlink); } }