diff --git a/app/src/constants.js b/app/src/constants.js index b3910c66..2b916bae 100644 --- a/app/src/constants.js +++ b/app/src/constants.js @@ -51,6 +51,7 @@ const Constants = { DRAWER_ROUTE_TRENDING: 'Trending', DRAWER_ROUTE_SUBSCRIPTIONS: 'Subscriptions', DRAWER_ROUTE_MY_LBRY: 'Downloads', + DRAWER_ROUTE_PUBLISH: 'Publish', DRAWER_ROUTE_REWARDS: 'Rewards', DRAWER_ROUTE_WALLET: 'Wallet', DRAWER_ROUTE_SETTINGS: 'Settings', diff --git a/app/src/page/publish/view.js b/app/src/page/publish/view.js index df3f8e0e..b6be32c6 100644 --- a/app/src/page/publish/view.js +++ b/app/src/page/publish/view.js @@ -71,7 +71,7 @@ class PublishPage extends React.PureComponent { const { currentRoute } = nextProps; const { currentRoute: prevRoute } = this.props; - if (Constants.DRAWER_ROUTE_REWARDS === currentRoute && currentRoute !== prevRoute) { + if (Constants.DRAWER_ROUTE_PUBLISH === currentRoute && currentRoute !== prevRoute) { this.onComponentFocused(); } }