From a3ec25b97e9c42424267f8f41fa60f172556a305 Mon Sep 17 00:00:00 2001 From: Asaye Dilbo <32922135+Asaye@users.noreply.github.com> Date: Wed, 22 Apr 2020 12:40:28 +0300 Subject: [PATCH] Update on issue #630 Modify the path '/profile/tasks' to '/profile/tasks/0' so that in the task-table.js, 'this.state.page' starts from 0. --- frontend/src/components/profile/profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/profile/profile.js b/frontend/src/components/profile/profile.js index 5a09c1301..91f93de24 100644 --- a/frontend/src/components/profile/profile.js +++ b/frontend/src/components/profile/profile.js @@ -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': @@ -330,7 +330,7 @@ class Profile extends Component { this.props.history.push('/profile/tasks') } + onClick={ () => this.props.history.push('/profile/tasks/0') } className={ classes.menuItem } selected={ this.state.selected === 0 } >