fix route focus check on publish page

This commit is contained in:
Akinwale Ariwodola 2019-06-14 17:13:19 +01:00
parent 380e11218c
commit 12cf390706
2 changed files with 2 additions and 1 deletions

View file

@ -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',

View file

@ -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();
}
}