From 2e5719f48afd988a1af0b4fd3edece027c226746 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 29 Nov 2018 00:12:34 -0500 Subject: [PATCH] fix typo --- src/renderer/page/channel/view.jsx | 5 +---- src/renderer/redux/actions/publish.js | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/renderer/page/channel/view.jsx b/src/renderer/page/channel/view.jsx index d61a01fa9..7f3ac5a92 100644 --- a/src/renderer/page/channel/view.jsx +++ b/src/renderer/page/channel/view.jsx @@ -98,10 +98,7 @@ class ChannelPage extends React.PureComponent { icon={ICONS.GLOBE} label={__('Share Channel')} onClick={() => - openModal( - { id: MODALS.SOCIAL_SHARE }, - { uri, speechShareable: true, isChannel: true } - ) + openModal(MODALS.SOCIAL_SHARE, { uri, speechShareable: true, isChannel: true }) } /> diff --git a/src/renderer/redux/actions/publish.js b/src/renderer/redux/actions/publish.js index b3de5e7a8..30202f2e1 100644 --- a/src/renderer/redux/actions/publish.js +++ b/src/renderer/redux/actions/publish.js @@ -16,7 +16,7 @@ import { creditsToString, selectPendingById, selectMyClaimsWithoutChannels, - doError + doError, } from 'lbry-redux'; import { doOpenModal } from 'redux/actions/app'; import { selectosNotificationsEnabled } from 'redux/selectors/settings'; @@ -99,7 +99,7 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => ( type: ACTIONS.UPDATE_PUBLISH_FORM, data: { uploadThumbnailStatus: THUMBNAIL_STATUSES.API_DOWN }, }, - dispatch(doOpenModal({ id: MODALS.ERROR, error })) + dispatch(doOpenModal(MODALS.ERROR, { error })) ) ); @@ -298,7 +298,7 @@ export const doPublish = (params: PublishParams) => ( const failure = error => { dispatch({ type: ACTIONS.PUBLISH_FAIL }); - dispatch(doError(error.message)) + dispatch(doError(error.message)); }; return Lbry.publish(publishPayload).then(success, failure);