Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar-binary committed Jun 4, 2019
1 parent 968eb0a commit 5053f20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ export default class PortfolioStore extends BaseStore {
@action.bound
removePositionById(contract_id) {
const { is_contract_mode } = this.root_store.modules.smart_chart;
const i = this.getPositionIndexById(contract_id);
const contract_idx = this.getPositionIndexById(contract_id);
this.positions.splice(i, 1);
this.positions.splice(contract_idx, 1);
// check if contract is in view in contract_mode before removing contract details from chart
if (is_contract_mode && (+this.root_store.modules.contract.contract_id === +contract_id)) {
Expand Down

0 comments on commit 5053f20

Please sign in to comment.