Fix for participe btn
This commit is contained in:
parent
bbe9b1b40e
commit
8a6584acb9
3 changed files with 10 additions and 6 deletions
|
|
@ -81,6 +81,8 @@ class SubscriptionsMap extends React.Component {
|
|||
const element = document.querySelector('#participe');
|
||||
if (element) {
|
||||
element.scrollIntoView();
|
||||
} else {
|
||||
this.props.history.push('/subscriptions');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -153,6 +155,7 @@ class SubscriptionsMap extends React.Component {
|
|||
SubscriptionsMap.propTypes = {
|
||||
subsready: PropTypes.bool.isRequired,
|
||||
userSubs: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
history: PropTypes.object.isRequired,
|
||||
t: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue