Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Justice Arthur committed May 24, 2022
1 parent 2f835e7 commit c67ac1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ class ReimbursementAccountPage extends React.Component {
}

fetchData() {
// We can specify a step to navigate to by using route params when the component mounts or when the network status changes.
// We initialize this variable because the route parameters may have changed when we toggle between offline and online states.
// We can specify a step to navigate to by using route params when the component mounts.
// We want to use the same stepToOpen variable when the network state changes because we can be redirected to a different step when the account refreshes.
const stepToOpen = this.getStepToOpenFromRouteParams();

// If we are trying to navigate to `/bank-account/new` and we already have a bank account then don't allow returning to `/new`
Expand Down

0 comments on commit c67ac1f

Please sign in to comment.