Skip to content

Commit

Permalink
Update on issue worknenjoy#630
Browse files Browse the repository at this point in the history
Modify the path '/profile/tasks' to '/profile/tasks/0' so that in the task-table.js, 'this.state.page' starts from 0.
  • Loading branch information
Asaye authored Apr 22, 2020
1 parent 76e3dad commit a3ec25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/profile/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Profile extends Component {

setActive (path) {
switch (path) {
case '/profile/tasks':
case '/profile/tasks/0':
this.setState({ selected: 0 })
break
case '/profile/payment-options':
Expand Down Expand Up @@ -330,7 +330,7 @@ class Profile extends Component {
<Paper className={ classes.menuContainer }>
<MenuList>
<MenuItem
onClick={ () => this.props.history.push('/profile/tasks') }
onClick={ () => this.props.history.push('/profile/tasks/0') }
className={ classes.menuItem }
selected={ this.state.selected === 0 }
>
Expand Down

0 comments on commit a3ec25b

Please sign in to comment.