From f9f3ea728c1f9ba22d001c53ba0efd44a71242db Mon Sep 17 00:00:00 2001 From: ue Date: Mon, 2 Sep 2019 22:27:22 +0300 Subject: [PATCH] profile hot fix --- .../postDropdown/container/postDropdownContainer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/postDropdown/container/postDropdownContainer.js b/src/components/postDropdown/container/postDropdownContainer.js index e06a9c7f3..d7108424d 100644 --- a/src/components/postDropdown/container/postDropdownContainer.js +++ b/src/components/postDropdown/container/postDropdownContainer.js @@ -112,14 +112,14 @@ class PostDropdownContainer extends PureComponent { const postUrl = getPostUrl(get(content, 'url')); Share.share({ - message: `${content.title} ${postUrl}`, + message: `${get(content, 'title')} ${postUrl}`, }); }; _addToBookmarks = () => { const { content, currentAccount, dispatch, intl } = this.props; - addBookmark(currentAccount.name, content.author, content.permlink) + addBookmark(get(currentAccount, 'name'), get(content, 'author'), get(content, 'permlink')) .then(() => { dispatch( toastNotification( @@ -143,7 +143,7 @@ class PostDropdownContainer extends PureComponent { _reblog = () => { const { content, currentAccount, dispatch, intl, isLoggedIn, pinCode } = this.props; if (isLoggedIn) { - reblog(currentAccount, pinCode, content.author, content.permlink) + reblog(currentAccount, pinCode, content.author, get(content, 'permlink', '')) .then(() => { dispatch( toastNotification( @@ -154,7 +154,7 @@ class PostDropdownContainer extends PureComponent { ); }) .catch(error => { - if (error.jse_shortmsg && String(error.jse_shortmsg).indexOf('has already reblogged')) { + if (String(get(error, 'jse_shortmsg', '')).indexOf('has already reblogged')) { dispatch( toastNotification( intl.formatMessage({